|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IVertexDeclaration
| 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 |
|---|
int getElementCount()
IVertexDeclaration.IVertexElementList getElements()
IVertexElement getElement(int index)
void sort()
void closeGapsInSource()
IVertexDeclaration getAutoOrganisedDeclaration(boolean skeletalAnimation,
boolean vertexAnimation)
int getMaxSource()
IVertexElement addElement(int source,
int offset,
VertexElementType theType,
VertexElementSemantic semantic,
int index)
IVertexElement insertElement(int atPosition,
int source,
int offset,
VertexElementType theType,
VertexElementSemantic semantic,
int index)
void removeElement(int elem_index)
void removeElement(VertexElementSemantic semantic,
int index)
void removeAllElements()
void modifyElement(int elem_index,
int source,
int offset,
VertexElementType theType,
VertexElementSemantic semantic,
int index)
IVertexElement findElementBySemantic(VertexElementSemantic sem,
int index)
void findElementsBySource(IVertexDeclaration.IVertexElementList returnValue,
int source)
int getVertexSize(int source)
IVertexDeclaration clone()
boolean operatorEqual(IVertexDeclaration rhs)
boolean operatorNotEqual(IVertexDeclaration rhs)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||