IndexBuffer


Description:

public IndexBuffer (Context context, ulong bytes)

Declares a new IndexBuffer of size bytes to contain vertex indices.

Once declared, data can be set using set_data or by mapping it into the application's address space using map.

Parameters:

context

A Context

bytes

The number of bytes to allocate for vertex attribute data.

Returns:

A newly allocated IndexBuffer