|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.VertexElement
public class VertexElement
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
VertexElement(InstancePointer p)
This constructor is public for internal useage only! |
protected |
VertexElement(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
VertexElement(int source,
int offset,
VertexElementType theType,
VertexElementSemantic semantic,
int index)
|
|
VertexElement(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
baseVertexPointerToElement_a(VoidPointer pBase,
NativeObjectPointer<VoidPointer> pElem)
Adjusts a pointer to the base of a vertex to point at this element. |
void |
baseVertexPointerToElement_b(VoidPointer pBase,
NativeObjectPointer<FloatPointer> pElem)
Adjusts a pointer to the base of a vertex to point at this element. |
void |
baseVertexPointerToElement_c(VoidPointer pBase,
NativeObjectPointer<LongPointer> pElem)
Adjusts a pointer to the base of a vertex to point at this element. |
void |
baseVertexPointerToElement_d(VoidPointer pBase,
NativeObjectPointer<ShortPointer> pElem)
Adjusts a pointer to the base of a vertex to point at this element. |
void |
baseVertexPointerToElement_e(VoidPointer pBase,
NativeObjectPointer<IntegerPointer> pElem)
Adjusts a pointer to the base of a vertex to point at this element. |
static long |
convertColourValue(IColourValue src,
VertexElementType dst)
Utility method for converting colour to a packed 32-bit colour type. |
static void |
convertColourValue(VertexElementType srcType,
VertexElementType dstType,
LongPointer ptr)
Utility method for converting colour from one packed 32-bit colour type to another. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
static VertexElementType |
getBaseType(VertexElementType multiType)
Simple converter function which will a type into it's single-value equivalent - makes switches on type easier. |
static VertexElementType |
getBestColourVertexElementType()
Utility method to get the most appropriate packed colour vertex element format. |
int |
getIndex()
|
int |
getOffset()
|
VertexElementSemantic |
getSemantic()
|
int |
getSize()
|
int |
getSource()
|
VertexElementType |
getType()
|
static int |
getTypeCount(VertexElementType etype)
|
static int |
getTypeSize(VertexElementType etype)
|
static VertexElementType |
multiplyTypeCount(VertexElementType baseType,
int count)
Simple converter function which will turn a single-value type into a multi-value type based on a parameter. |
boolean |
operatorEqual(IVertexElement rhs)
|
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public VertexElement(InstancePointer p)
protected VertexElement(InstancePointer p,
boolean remote)
public VertexElement(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public VertexElement(int source,
int offset,
VertexElementType theType,
VertexElementSemantic semantic,
int index)
| 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 getSource()
getSource in interface IVertexElementpublic int getOffset()
getOffset in interface IVertexElementpublic VertexElementType getType()
getType in interface IVertexElementpublic VertexElementSemantic getSemantic()
getSemantic in interface IVertexElementpublic int getIndex()
getIndex in interface IVertexElementpublic int getSize()
getSize in interface IVertexElementpublic boolean operatorEqual(IVertexElement rhs)
operatorEqual in interface IVertexElement
public void baseVertexPointerToElement_a(VoidPointer pBase,
NativeObjectPointer<VoidPointer> pElem)
baseVertexPointerToElement_a in interface IVertexElement
public void baseVertexPointerToElement_b(VoidPointer pBase,
NativeObjectPointer<FloatPointer> pElem)
baseVertexPointerToElement_b in interface IVertexElement
public void baseVertexPointerToElement_c(VoidPointer pBase,
NativeObjectPointer<LongPointer> pElem)
baseVertexPointerToElement_c in interface IVertexElement
public void baseVertexPointerToElement_d(VoidPointer pBase,
NativeObjectPointer<ShortPointer> pElem)
baseVertexPointerToElement_d in interface IVertexElement
public void baseVertexPointerToElement_e(VoidPointer pBase,
NativeObjectPointer<IntegerPointer> pElem)
baseVertexPointerToElement_e in interface IVertexElementpublic static int getTypeSize(VertexElementType etype)
public static int getTypeCount(VertexElementType etype)
public static VertexElementType multiplyTypeCount(VertexElementType baseType,
int count)
public static VertexElementType getBaseType(VertexElementType multiType)
public static void convertColourValue(VertexElementType srcType,
VertexElementType dstType,
LongPointer ptr)
public static long convertColourValue(IColourValue src,
VertexElementType dst)
public static VertexElementType getBestColourVertexElementType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||