org.ogre4j
Interface IVertexBufferBinding

All Superinterfaces:
IAllocatedObject<IGeometryAllocPolicy>, IGeometryAllocatedObject, INativeObject
All Known Implementing Classes:
VertexBufferBinding

public interface IVertexBufferBinding
extends INativeObject, IGeometryAllocatedObject


Nested Class Summary
static interface IVertexBufferBinding.IBindingIndexMap
           
static interface IVertexBufferBinding.IVertexBufferBindingMap
           
 
Method Summary
 void closeGaps(IVertexBufferBinding.IBindingIndexMap bindingIndexMap)
          Remove any gaps in the bindings.
 IVertexBufferBinding.IVertexBufferBindingMap getBindings()
           
 IHardwareVertexBufferSharedPtr getBuffer(int index)
           
 int getBufferCount()
           
 int getLastBoundIndex()
          Gets the last bound index.
 int getNextIndex()
          Gets the highest index which has already been set, plus 1.
 boolean hasGaps()
          Check whether any gaps in the bindings.
 boolean isBufferBound(int index)
           
 void setBinding(int index, IHardwareVertexBufferSharedPtr buffer)
          Set a binding, associating a vertex buffer with a given index.
 void unsetAllBindings()
          Removes all the bindings.
 void unsetBinding(int index)
          Removes an existing binding.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

setBinding

void setBinding(int index,
                IHardwareVertexBufferSharedPtr buffer)
Set a binding, associating a vertex buffer with a given index.


unsetBinding

void unsetBinding(int index)
Removes an existing binding.


unsetAllBindings

void unsetAllBindings()
Removes all the bindings.


getBindings

IVertexBufferBinding.IVertexBufferBindingMap getBindings()

getBuffer

IHardwareVertexBufferSharedPtr getBuffer(int index)

isBufferBound

boolean isBufferBound(int index)

getBufferCount

int getBufferCount()

getNextIndex

int getNextIndex()
Gets the highest index which has already been set, plus 1.


getLastBoundIndex

int getLastBoundIndex()
Gets the last bound index.


hasGaps

boolean hasGaps()
Check whether any gaps in the bindings.


closeGaps

void closeGaps(IVertexBufferBinding.IBindingIndexMap bindingIndexMap)
Remove any gaps in the bindings.



Copyright © 2007 netAllied GmbH. All Rights Reserved.