Esempio n. 1
0
 public void Clear(ClearOptions options, Vector4 color, float depth, int stencil)
 {
     if (openGLESVersion == GLContextVersion.Gles2_0)
     {
         GL20.ClearColor(color.X, color.Y, color.Z, color.W);
         GL20.ClearDepth(depth);
         GL20.ClearStencil(stencil);
         GL20.Clear((uint)(All20.ColorBufferBit | All20.DepthBufferBit | All20.StencilBufferBit));
     }
     else
     {
         GL11.ClearColor(color.X, color.Y, color.Z, color.W);
         GL11.ClearDepth(depth);
         GL11.ClearStencil(stencil);
         GL11.Clear((uint)(All11.ColorBufferBit | All11.DepthBufferBit | All11.StencilBufferBit));
     }
 }