Opentk/Source/Examples/Shapes/Helpers/VboShape.cs
Fraser Waters 54f1e575d0 Fix compile warnings in Examples.
This commit fixes every current warning in the Example code bar two.
Both due to the use of the OpenTK.GameWindow.Joysticks.
2014-02-25 10:31:17 +00:00

28 lines
763 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Examples.Shapes
{
public sealed class VboShape: DrawableShape
{
public VboShape(ref OpenTK.Graphics.OpenGL.PrimitiveType primitives, ref VertexT2dN3dV3d[] vertices, ref uint[] indices, bool useDL)
: base( useDL )
{
PrimitiveMode = primitives;
VertexArray = new VertexT2dN3dV3d[vertices.Length];
for ( uint i = 0; i < vertices.Length; i++ )
{
VertexArray[i] = vertices[i];
}
IndexArray = new uint[indices.Length];
for ( uint i = 0; i < indices.Length; i++ )
{
IndexArray[i] = indices[i];
}
}
}
}