|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.OptimisedUtil
public class OptimisedUtil
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
OptimisedUtil(InstancePointer p)
This constructor is public for internal useage only! |
protected |
OptimisedUtil(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
OptimisedUtil(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
calculateFaceNormals(FloatPointer positions,
IEdgeData.ITriangle triangles,
IVector4 faceNormals,
int numTriangles)
Calculate the face normals for the triangles based on position information. |
void |
calculateLightFacing(IVector4 lightPos,
IVector4 faceNormals,
BytePointer lightFacings,
int numFaces)
Calculate the light facing state of the triangle's face normals |
void |
concatenateAffineMatrices(IMatrix4 baseMatrix,
IMatrix4 srcMatrices,
IMatrix4 dstMatrices,
int numMatrices)
Concatenate an affine matrix to an array of affine matrices. |
void |
delete()
Deletes the corresponding C++ object. |
void |
extrudeVertices(IVector4 lightPos,
float extrudeDist,
FloatPointer srcPositions,
FloatPointer destPositions,
int numVertices)
Extruding vertices by a fixed distance based on light position. |
void |
finalize()
|
static IOptimisedUtil |
getImplementation()
Gets the implementation of this class. |
void |
softwareVertexMorph(float t,
FloatPointer srcPos1,
FloatPointer srcPos2,
FloatPointer dstPos,
int numVertices)
Performs a software vertex morph, of the kind used for morph animation although it can be used for other purposes. |
void |
softwareVertexSkinning(FloatPointer srcPosPtr,
FloatPointer destPosPtr,
FloatPointer srcNormPtr,
FloatPointer destNormPtr,
FloatPointer blendWeightPtr,
ShortPointer blendIndexPtr,
NativeObjectPointer<IMatrix4> blendMatrices,
int srcPosStride,
int destPosStride,
int srcNormStride,
int destNormStride,
int blendWeightStride,
int blendIndexStride,
int numWeightsPerVertex,
int numVertices)
Performs software vertex skinning. |
| 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 OptimisedUtil(InstancePointer p)
protected OptimisedUtil(InstancePointer p,
boolean remote)
public OptimisedUtil(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()| 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 NativeObject
public void softwareVertexSkinning(FloatPointer srcPosPtr,
FloatPointer destPosPtr,
FloatPointer srcNormPtr,
FloatPointer destNormPtr,
FloatPointer blendWeightPtr,
ShortPointer blendIndexPtr,
NativeObjectPointer<IMatrix4> blendMatrices,
int srcPosStride,
int destPosStride,
int srcNormStride,
int destNormStride,
int blendWeightStride,
int blendIndexStride,
int numWeightsPerVertex,
int numVertices)
softwareVertexSkinning in interface IOptimisedUtil
public void softwareVertexMorph(float t,
FloatPointer srcPos1,
FloatPointer srcPos2,
FloatPointer dstPos,
int numVertices)
softwareVertexMorph in interface IOptimisedUtil
public void concatenateAffineMatrices(IMatrix4 baseMatrix,
IMatrix4 srcMatrices,
IMatrix4 dstMatrices,
int numMatrices)
concatenateAffineMatrices in interface IOptimisedUtil
public void calculateFaceNormals(FloatPointer positions,
IEdgeData.ITriangle triangles,
IVector4 faceNormals,
int numTriangles)
calculateFaceNormals in interface IOptimisedUtil
public void calculateLightFacing(IVector4 lightPos,
IVector4 faceNormals,
BytePointer lightFacings,
int numFaces)
calculateLightFacing in interface IOptimisedUtil
public void extrudeVertices(IVector4 lightPos,
float extrudeDist,
FloatPointer srcPositions,
FloatPointer destPositions,
int numVertices)
extrudeVertices in interface IOptimisedUtilpublic static IOptimisedUtil getImplementation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||