public override void SetTexture( int unit, bool enabled, Core.Texture texture ) { var tex = (GLES2Texture) texture; if ( !this.ActivateGLTextureUnit( unit ) ) { return; } if ( enabled ) { if ( tex != null ) { tex.Touch(); this.textureTypes[ unit ] = tex.GLES2TextureTarget; } else { //Assume 2D //TODO: this.textureTypes[ unit ] = All.Texture2D; } if ( tex != null ) { GL.BindTexture( this.textureTypes[ unit ], tex.GLID ); GLES2Config.GlCheckError( this ); } else { GL.BindTexture( this.textureTypes[ unit ], ( textureManager as GLES2TextureManager ).WarningTextureID ); GLES2Config.GlCheckError( this ); } } else { //Bind zero texture GL.BindTexture( All.Texture2D, 0 ); GLES2Config.GlCheckError( this ); } this.ActivateGLTextureUnit( 0 ); }
public override void SetSurfaceParams( Core.ColorEx ambient, Core.ColorEx diffuse, Core.ColorEx specular, Core.ColorEx emissive, Real shininess, Core.TrackVertexColor tracking ) { }
public override void UseLights( Core.Collections.LightList lightList, int limit ) { //Ogre: not supported }
public override void SetFog( FogMode mode, Core.ColorEx color, Real density, Real linearStart, Real linearEnd ) { //Ogre empty... }
public override void SetTextureBorderColor( int unit, Core.ColorEx borderColor ) { //Ogre: not supported }
public override void SetTextureCoordCalculation( int unit, TexCoordCalcMethod method, Core.Frustum frustum ) { //Ogre: not supported }