Drawing3d documented Class Library

OpenGlDevice.glDrawElements(Int32, Int32, Int32, UInt16) Method

render primitives from array data

[Visual Basic]
Public Overloads Shared Sub glDrawElements( _
   ByVal Mode As Integer, _
   ByVal count As Integer, _
   ByVal Type As Integer, _
   ByRef Indices As UInt16 _
)
[C#]
public static void glDrawElements(
   int Mode,
   int count,
   int Type,
   ref ushort Indices
);

Parameters

Mode
Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted.
count
Specifies the number of elements to be rendered.
Type
Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT.
Indices

See Also

OpenGlDevice Class | Drawing3d.Devices Namespace | OpenGlDevice.glDrawElements Overload List