Package jni
Class JniEntity
- java.lang.Object
-
- jni.JniEntity
-
public class JniEntity extends Object
- Author:
- Grégory Van den Borre
-
-
Constructor Summary
Constructors Constructor Description JniEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
castShadow(long pointerAddress, boolean cast)
Set the Ogre::Entity casts shadows.void
delete(long address)
Delete the object in native code.String
getParentSceneNode(long pointerAddress)
Get the parent scene node name.void
setMaterial(long pointerAddress, long material)
Set a Material on this object.void
setParameter(long pointerAddress, int index, float v1, float v2, float v3, float v4)
Set a GPU program parameter.void
setRenderingDistance(long pointer, int distance)
Set the maximum distance from where the entity will no longer be rendered.void
setRenderQueue(long pointer, int index)
Set the object to be rendered behind the other.void
setUnpickable(long pointerAddress)
Set the Ogre::Entity to be ignored by ray picking.
-
-
-
Method Detail
-
delete
public void delete(long address)
Delete the object in native code.- Parameters:
address
- Address of the native object.
-
getParentSceneNode
public String getParentSceneNode(long pointerAddress)
Get the parent scene node name.- Parameters:
pointerAddress
- Address of the native Ogre::Entity pointer.- Returns:
- Ogre::Entity::getParentSceneNode().getName().
-
castShadow
public void castShadow(long pointerAddress, boolean cast)
Set the Ogre::Entity casts shadows.- Parameters:
pointerAddress
- Address of the native Ogre::Entity pointer.cast
-true
to cast shadow,false
to stop casting.
-
setMaterial
public void setMaterial(long pointerAddress, long material)
Set a Material on this object.- Parameters:
pointerAddress
- Address of the native Ogre::Entity pointer.material
- Material to set.
-
setUnpickable
public void setUnpickable(long pointerAddress)
Set the Ogre::Entity to be ignored by ray picking.- Parameters:
pointerAddress
- Address of the native Ogre::Entity pointer.
-
setParameter
public void setParameter(long pointerAddress, int index, float v1, float v2, float v3, float v4)
Set a GPU program parameter.- Parameters:
pointerAddress
- Address of the native Ogre::Entity pointer.index
- Parameter index.v1
- Parameter value 1.v2
- Parameter value 2.v3
- Parameter value 3.v4
- Parameter value 4.
-
setRenderingDistance
public void setRenderingDistance(long pointer, int distance)
Set the maximum distance from where the entity will no longer be rendered.- Parameters:
pointer
- Address of the native Entity pointer.distance
- Maximum rendering distance.
-
setRenderQueue
public void setRenderQueue(long pointer, int index)
Set the object to be rendered behind the other.- Parameters:
pointer
- Address of the native Entity pointer.index
- Z position(0 = background, 105 = max).
-
-