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(
	ushort[] data
)
Visual Basic
Public Sub AddIndexBufferObject ( _
	data As UShort() _
)
Visual C++
public:
void AddIndexBufferObject(
	array<unsigned short>^ data
)

Parameters

data
Type: array<System..::..UInt16>[]()[][]
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