mirror of
				https://github.com/Ryujinx/Opentk.git
				synced 2025-10-22 08:27:22 +00:00 
			
		
		
		
	Updated GL.DrawElements to use DrawElementsType instead of Enums.All
This commit is contained in:
		
							parent
							
								
									cc3239d466
								
							
						
					
					
						commit
						2b378b5a99
					
				|  | @ -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); | ||||
| 
 | ||||
|  |  | |||
|  | @ -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); | ||||
|  |  | |||
|  | @ -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); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue