org.ogre4j
Interface IVertexDeclaration

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

public interface IVertexDeclaration
extends INativeObject, IGeometryAllocatedObject


Nested Class Summary
static interface IVertexDeclaration.IVertexElementList
           
 
Method Summary
 IVertexElement addElement(int source, int offset, VertexElementType theType, VertexElementSemantic semantic, int index)
          Adds a new to this declaration.
 IVertexDeclaration clone()
          Clones this declaration.
 void closeGapsInSource()
          Remove any gaps in the source buffer list used by this declaration.
 IVertexElement findElementBySemantic(VertexElementSemantic sem, int index)
          Finds a with the given semantic, and index if there is more than one element with the same semantic.
 void findElementsBySource(IVertexDeclaration.IVertexElementList returnValue, int source)
          Gets a list of elements which use a given source.
 IVertexDeclaration getAutoOrganisedDeclaration(boolean skeletalAnimation, boolean vertexAnimation)
          Generates a new for optimal usage based on the current vertex declaration, which can be used with later if you wish, or simply used as a template.
 IVertexElement getElement(int index)
          Get a single element.
 int getElementCount()
          Get the number of elements in the declaration.
 IVertexDeclaration.IVertexElementList getElements()
          Gets read-only access to the list of vertex elements.
 int getMaxSource()
          Gets the index of the highest source value referenced by this declaration.
 int getVertexSize(int source)
          Gets the vertex size defined by this declaration for a given source.
 IVertexElement insertElement(int atPosition, int source, int offset, VertexElementType theType, VertexElementSemantic semantic, int index)
          Inserts a new at a given position in this declaration.
 void modifyElement(int elem_index, int source, int offset, VertexElementType theType, VertexElementSemantic semantic, int index)
          Modify an element in-place, params as addElement.
 boolean operatorEqual(IVertexDeclaration rhs)
           
 boolean operatorNotEqual(IVertexDeclaration rhs)
           
 void removeAllElements()
          Remove all elements.
 void removeElement(int elem_index)
          Remove the element at the given index from this declaration.
 void removeElement(VertexElementSemantic semantic, int index)
          Remove the element with the given semantic and usage index.
 void sort()
          Sorts the elements in this list to be compatible with the maximum number of rendering APIs / graphics cards.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

getElementCount

int getElementCount()
Get the number of elements in the declaration.


getElements

IVertexDeclaration.IVertexElementList getElements()
Gets read-only access to the list of vertex elements.


getElement

IVertexElement getElement(int index)
Get a single element.


sort

void sort()
Sorts the elements in this list to be compatible with the maximum number of rendering APIs / graphics cards.


closeGapsInSource

void closeGapsInSource()
Remove any gaps in the source buffer list used by this declaration.


getAutoOrganisedDeclaration

IVertexDeclaration getAutoOrganisedDeclaration(boolean skeletalAnimation,
                                               boolean vertexAnimation)
Generates a new for optimal usage based on the current vertex declaration, which can be used with later if you wish, or simply used as a template.


getMaxSource

int getMaxSource()
Gets the index of the highest source value referenced by this declaration.


addElement

IVertexElement addElement(int source,
                          int offset,
                          VertexElementType theType,
                          VertexElementSemantic semantic,
                          int index)
Adds a new to this declaration.


insertElement

IVertexElement insertElement(int atPosition,
                             int source,
                             int offset,
                             VertexElementType theType,
                             VertexElementSemantic semantic,
                             int index)
Inserts a new at a given position in this declaration.


removeElement

void removeElement(int elem_index)
Remove the element at the given index from this declaration.


removeElement

void removeElement(VertexElementSemantic semantic,
                   int index)
Remove the element with the given semantic and usage index.


removeAllElements

void removeAllElements()
Remove all elements.


modifyElement

void modifyElement(int elem_index,
                   int source,
                   int offset,
                   VertexElementType theType,
                   VertexElementSemantic semantic,
                   int index)
Modify an element in-place, params as addElement.


findElementBySemantic

IVertexElement findElementBySemantic(VertexElementSemantic sem,
                                     int index)
Finds a with the given semantic, and index if there is more than one element with the same semantic.


findElementsBySource

void findElementsBySource(IVertexDeclaration.IVertexElementList returnValue,
                          int source)
Gets a list of elements which use a given source.


getVertexSize

int getVertexSize(int source)
Gets the vertex size defined by this declaration for a given source.


clone

IVertexDeclaration clone()
Clones this declaration.


operatorEqual

boolean operatorEqual(IVertexDeclaration rhs)

operatorNotEqual

boolean operatorNotEqual(IVertexDeclaration rhs)


Copyright © 2007 netAllied GmbH. All Rights Reserved.