|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.VertexDeclaration
public class VertexDeclaration
| Nested Class Summary | |
|---|---|
static class |
VertexDeclaration.VertexElementList
|
| Nested classes/interfaces inherited from interface org.ogre4j.IVertexDeclaration |
|---|
IVertexDeclaration.IVertexElementList |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
VertexDeclaration()
|
|
VertexDeclaration(InstancePointer p)
This constructor is public for internal useage only! |
protected |
VertexDeclaration(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
VertexDeclaration(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| 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. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
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. |
static boolean |
vertexElementLess(IVertexElement e1,
IVertexElement e2)
|
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public VertexDeclaration(InstancePointer p)
protected VertexDeclaration(InstancePointer p,
boolean remote)
public VertexDeclaration(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public VertexDeclaration()
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic int getElementCount()
getElementCount in interface IVertexDeclarationpublic IVertexDeclaration.IVertexElementList getElements()
getElements in interface IVertexDeclarationpublic IVertexElement getElement(int index)
getElement in interface IVertexDeclarationpublic void sort()
sort in interface IVertexDeclarationpublic void closeGapsInSource()
closeGapsInSource in interface IVertexDeclaration
public IVertexDeclaration getAutoOrganisedDeclaration(boolean skeletalAnimation,
boolean vertexAnimation)
getAutoOrganisedDeclaration in interface IVertexDeclarationpublic int getMaxSource()
getMaxSource in interface IVertexDeclaration
public IVertexElement addElement(int source,
int offset,
VertexElementType theType,
VertexElementSemantic semantic,
int index)
addElement in interface IVertexDeclaration
public IVertexElement insertElement(int atPosition,
int source,
int offset,
VertexElementType theType,
VertexElementSemantic semantic,
int index)
insertElement in interface IVertexDeclarationpublic void removeElement(int elem_index)
removeElement in interface IVertexDeclaration
public void removeElement(VertexElementSemantic semantic,
int index)
removeElement in interface IVertexDeclarationpublic void removeAllElements()
removeAllElements in interface IVertexDeclaration
public void modifyElement(int elem_index,
int source,
int offset,
VertexElementType theType,
VertexElementSemantic semantic,
int index)
modifyElement in interface IVertexDeclaration
public IVertexElement findElementBySemantic(VertexElementSemantic sem,
int index)
findElementBySemantic in interface IVertexDeclaration
public void findElementsBySource(IVertexDeclaration.IVertexElementList returnValue,
int source)
findElementsBySource in interface IVertexDeclarationpublic int getVertexSize(int source)
getVertexSize in interface IVertexDeclarationpublic IVertexDeclaration clone()
clone in interface IVertexDeclarationclone in class java.lang.Objectpublic boolean operatorEqual(IVertexDeclaration rhs)
operatorEqual in interface IVertexDeclarationpublic boolean operatorNotEqual(IVertexDeclaration rhs)
operatorNotEqual in interface IVertexDeclaration
public static boolean vertexElementLess(IVertexElement e1,
IVertexElement e2)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||