Пример #1
0
 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();
 }
Пример #2
0
 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();
 }