static void DisplayCube(Shape cube) { GL.Begin(BeginMode.Triangles); foreach (var index in cube.Indices) { GL.Color3(cube.Colors[index]); GL.Vertex3(cube.Vertices[index]); } GL.End(); }
private static void DisplayCube(Shape cube) { GL.Begin(PrimitiveType.Triangles); foreach (uint index in cube.Indices) { GL.Color3(cube.Colors[index]); GL.Vertex3(cube.Vertices[index]); } GL.End(); }