Drawing3d documented Class Library

OpenGlDevice.glBufferData(Int32, Int32, Int32, Int32) Method

creates and initializes a buffer object's data store

[Visual Basic]
Public Overloads Shared Sub glBufferData( _
   ByVal target As Integer, _
   ByVal Size As Integer, _
   ByVal data As Integer, _
   ByVal usage As Integer _
)
[C#]
public static int glBufferData(
   int target,
   int Size,
   int data,
   int usage
);

Parameters

target
Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER.
Size
Specifies the size in bytes of the buffer object's new data store.
data
Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied.
usage
Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY.

Return Value

See Also

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