Adds a new index buffer object as part of this vertex state. If an exception is thrown, the state is reset to what it was before the method was called.

Namespace: HighGL
Assembly: HighGL (in HighGL.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public void AddIndexBufferObject(
	byte[] data
)
Visual Basic
Public Sub AddIndexBufferObject ( _
	data As Byte() _
)
Visual C++
public:
void AddIndexBufferObject(
	array<unsigned char>^ data
)

Parameters

data
Type: array<System..::..Byte>[]()[][]
The buffer data.

Exceptions

ExceptionCondition
System..::..ObjectDisposedExceptionIf this object was disposed.
System..::..ArgumentNullExceptionIf data is null.
HighGL..::..GLErrorExceptionIf a GL error occurs on VBO initialization.

See Also