C3DMesh::UnlockIndexBuffer

Top  Previous  Next

Syntax:

 

UnlockIndexBuffer()

 

Purpose:

Unlocks an index buffer.

 

Parameters:

None.

 

Returned value(s):

None.

 

Application:

POINTER pIB
pIB = *<C3DMesh>pRet.LockIndexBuffer()
#<WORD>pIB[0] = 3
#<WORD>pIB[1] = 4
#<WORD>pIB[2] = 2
*<C3DMesh>pRet.UnlockIndexBuffer()

 

Class Hierarchy

C3DObject

-------C3DMesh

 

Additional Info:

When working with index buffers, you are allowed to make multiple lock calls. However, you must ensure that the number of lock calls match the number of unlock calls.

 

Be sure the buffer in unlocked before trying to render the mesh.

 

See Also:

LockIndexBuffer