public GLESRenderSystem()
{
depthWrite = true;
_stencilMask = 0xFFFFFFFF;
int i;
LogManager.Instance.Write( string.Format( "{0} created.", Name ) );
_glSupport = GLESUtil.GLESSupport;
for ( i = 0; i < MaxLights; i++ )
_lights[ i ] = null;
_worldMatrix = Matrix4.Identity;
_ViewMatrix = Matrix4.Identity;
_glSupport.AddConfig();
_colorWrite[ 0 ] = _colorWrite[ 1 ] = _colorWrite[ 2 ] = _colorWrite[ 3 ] = true;
for ( int layer = 0; layer < Axiom.Configuration.Config.MaxTextureLayers; layer++ )
{
// Dummy value
_textureCoodIndex[ layer ] = 99;
}
_textureCount = 0;
activeRenderTarget = null;
_currentContext = null;
_mainContext = null;
_glInitialized = false;
numCurrentLights = 0;
_textureMipmapCount = 0;
_minFilter = FilterOptions.Linear;
_mipFilter = FilterOptions.Point;
// _polygonMode = OpenTK.Graphics.ES11.
}