示例#1
0
文件: GLUtils.cs 项目: nobcdz/LGame
 public static void Reset(GL gl)
 {
     GLUtils.currentHardwareTextureID    = -1;
     GLUtils.currentSourceBlendMode      = -1;
     GLUtils.currentDestinationBlendMode = -1;
     GLUtils.DisableBlend(gl);
     GLUtils.DisableCulling(gl);
     GLUtils.DisableTextures(gl);
     GLUtils.DisableTexCoordArray(gl);
     GLUtils.DisableTexColorArray(gl);
     GLUtils.DisableVertexArray(gl);
     GLUtils.red   = -1;
     GLUtils.green = -1;
     GLUtils.blue  = -1;
     GLUtils.alpha = -1;
 }
示例#2
0
文件: GLUtils.cs 项目: nobcdz/LGame
 public static void SetClearColor(GL gl10, LColor c)
 {
     GLUtils.SetColor(gl10, c.r, c.g, c.b, c.a);
 }