Ejemplo n.º 1
0
 /// <summary>
 /// Draws the elements in the VBO without the use of the index buffer
 /// </summary>
 /// <param name="mode">The mode by which these vertices are drawn</param>
 public virtual void DrawArray(OpenTK.Graphics.OpenGL.BeginMode mode)
 {
     GL.DrawArrays(mode, 0, verticesLength);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Draws the elements stored in the Vertex Buffer Objects (VBO)
 /// </summary>
 /// <param name="mode">The mode by which these vertices are drawn</param>
 public virtual void DrawElements(OpenTK.Graphics.OpenGL.BeginMode mode)
 {
     GL.DrawElements(mode, indicesLength,
                     DrawElementsType.UnsignedInt, IntPtr.Zero);
 }