public ParallaxMappingForm() { this.font = new Font( @"Data\Fonts\Verdana.jpg" ).ApplyFont( itemsManager ); this.texture = new Texture2D( @"Data\ParallaxMapping\Maps\rockwall.jpg" ).ApplyTexture( this.itemsManager ); this.textureHeight = new Texture2D( @"Data\ParallaxMapping\Maps\rockwall_height.png" ) { WrapS = TextureWrapMode.ClampToEdgeSgis, WrapT = TextureWrapMode.ClampToEdgeSgis }.ApplyTexture( this.itemsManager ); this.textureNormal = new Texture2D( @"Data\ParallaxMapping\Maps\rockwall_normal.png" ) { WrapS = TextureWrapMode.ClampToEdgeSgis, WrapT = TextureWrapMode.ClampToEdgeSgis }.ApplyTexture( this.itemsManager ); this.programs = new[] { ShaderProgram.Create<ParallaxShaderProgram>( @"Data\ParallaxMapping\parallax.vert", @"Data\ParallaxMapping\parallax.frag" ). ApplyProgram( itemsManager ), ShaderProgram.Create<ParallaxShaderProgram>( @"Data\ParallaxMapping\parallax.vert", @"Data\ParallaxMapping\parallax1.frag" ). ApplyProgram( itemsManager ), ShaderProgram.Create<ParallaxShaderProgram>( @"Data\ParallaxMapping\parallax.vert", @"Data\ParallaxMapping\relief1.frag" ). ApplyProgram( itemsManager ), }; camera.Position.Z = 50; }
public Console( Font font ) { if (font == null) throw new ArgumentNullException( "font" ); this.font = font; }