Esempio n. 1
0
 public static void Clear(this IGL gl, System.Windows.Media.Color color, float depth)
 {
     gl.ClearColor(
         ((float)color.R) / 255,
         ((float)color.G) / 255,
         ((float)color.B) / 255,
         ((float)color.A) / 255);
     gl.ClearDepth(depth);
     gl.Clear(GLClearBufferMask.ColorBufferBit | GLClearBufferMask.DepthBufferBit);
 }