Drawing3d documented Class Library

OpenGlDevice.glColorPointer Method

define an array of colors

[Visual Basic]
Public Shared Sub glColorPointer( _
   ByVal Size As Integer, _
   ByVal Type As Integer, _
   ByVal Stride As Integer, _
   ByRef Color As Double _
public static void glColorPointer(
   int Size,
   int Type,
   int Stride,
   ref double Color


Specifies the number of components per color. Must be 3 or 4. The initial value is 4.
Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT.
Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0.
Specifies a pointer to the first component of the first color element in the array. The initial value is 0.

See Also

OpenGlDevice Class | Drawing3d.Devices Namespace