From 2b378b5a99af835f38ad84438775cc6985dcaa54 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 15 Jan 2008 00:03:32 +0000 Subject: [PATCH] Updated GL.DrawElements to use DrawElementsType instead of Enums.All --- Source/Examples/Tutorial/T02_Vertex_Arrays.cs | 2 +- Source/Examples/Tutorial/T08_VBO.cs | 2 +- Source/Examples/Tutorial/T10_GLSL_Cube.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Examples/Tutorial/T02_Vertex_Arrays.cs b/Source/Examples/Tutorial/T02_Vertex_Arrays.cs index 03e081cb..a6878462 100644 --- a/Source/Examples/Tutorial/T02_Vertex_Arrays.cs +++ b/Source/Examples/Tutorial/T02_Vertex_Arrays.cs @@ -160,7 +160,7 @@ namespace Examples.Tutorial GL.Rotate(angle, 0.0f, 1.0f, 0.0f); GL.DrawElements(BeginMode.Triangles, shape.Indices.Length, - All.UnsignedInt, shape.Indices); + DrawElementsType.UnsignedInt, shape.Indices); //GL.Begin(GL.Enums.BeginMode.TRIANGLES); diff --git a/Source/Examples/Tutorial/T08_VBO.cs b/Source/Examples/Tutorial/T08_VBO.cs index a1fd98aa..5900e78b 100644 --- a/Source/Examples/Tutorial/T08_VBO.cs +++ b/Source/Examples/Tutorial/T08_VBO.cs @@ -168,7 +168,7 @@ namespace Examples.Tutorial //GL.TexCoordPointer(2, TexCoordPointerType.Float, vector2_size, (IntPtr)vector2_size); GL.VertexPointer(3, VertexPointerType.Float, Vector3.SizeInBytes, IntPtr.Zero); - GL.DrawElements(BeginMode.Triangles, handle.NumElements, All.UnsignedInt, IntPtr.Zero); + GL.DrawElements(BeginMode.Triangles, handle.NumElements, DrawElementsType.UnsignedInt, IntPtr.Zero); //GL.DrawArrays(BeginMode.LineLoop, 0, vbo.element_count); GL.BindBuffer(BufferTarget.ArrayBuffer, 0); diff --git a/Source/Examples/Tutorial/T10_GLSL_Cube.cs b/Source/Examples/Tutorial/T10_GLSL_Cube.cs index 51ae22fa..4e0cd67d 100644 --- a/Source/Examples/Tutorial/T10_GLSL_Cube.cs +++ b/Source/Examples/Tutorial/T10_GLSL_Cube.cs @@ -240,7 +240,7 @@ namespace Examples.Tutorial GL.BindBuffer(BufferTarget.ElementArrayBuffer, element_buffer_object); GL.DrawElements(BeginMode.Triangles, shape.Indices.Length, - All.UnsignedInt, IntPtr.Zero); + DrawElementsType.UnsignedInt, IntPtr.Zero); //GL.DrawArrays(GL.Enums.BeginMode.POINTS, 0, shape.Vertices.Length);