Class OgreEntity
- java.lang.Object
-
- be.yildizgames.module.graphic.ogre.OgreEntity
-
- All Implemented Interfaces:
be.yildizgames.common.jni.Native
public final class OgreEntity extends Object implements be.yildizgames.common.jni.Native
Associated to an Ogre:Entity.- Author:
- Grégory Van den Borre
-
-
Constructor Summary
Constructors Constructor Description OgreEntity(be.yildizgames.common.jni.NativePointer pointer, OgreNodeBase node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
castShadow(boolean cast)
Set the entity casting shadows.void
delete()
OgreNodeBase
getNode()
String
getParentName()
be.yildizgames.common.jni.NativePointer
getPointer()
void
renderBehind()
Render the entity behind other.void
setMaterial(be.yildizgames.module.graphic.material.Material material)
Set the material to this 3d object.void
setParameter(int index, float v1, float v2, float v3, float v4)
Set a GPU parameter on this entity.void
setRenderingDistance(int distance)
Set the maximum distance from where the entity will no longer be rendered.void
setUnpickable()
Set the entity to be not pickable.
-
-
-
Constructor Detail
-
OgreEntity
public OgreEntity(be.yildizgames.common.jni.NativePointer pointer, OgreNodeBase node)
-
-
Method Detail
-
setMaterial
public void setMaterial(be.yildizgames.module.graphic.material.Material material)
Set the material to this 3d object.- Parameters:
material
- New material to use.
-
getParentName
public String getParentName()
- Returns:
- The parent Ogre::SceneNode name.
-
castShadow
public void castShadow(boolean cast)
Set the entity casting shadows.- Parameters:
cast
-true
to cast shadow,false
to stop casting.
-
setUnpickable
public void setUnpickable()
Set the entity to be not pickable.
-
renderBehind
public void renderBehind()
Render the entity behind other.
-
setParameter
public void setParameter(int index, float v1, float v2, float v3, float v4)
Set a GPU parameter on this entity.- Parameters:
index
- Parameter index.v1
- Float4 1st value.v2
- Float4 2nd value.v3
- Float4 3rd value.v4
- Float4 4th value.
-
setRenderingDistance
public void setRenderingDistance(int distance)
Set the maximum distance from where the entity will no longer be rendered.- Parameters:
distance
- Maximum rendering distance.
-
delete
public void delete()
- Specified by:
delete
in interfacebe.yildizgames.common.jni.Native
-
getPointer
public be.yildizgames.common.jni.NativePointer getPointer()
- Specified by:
getPointer
in interfacebe.yildizgames.common.jni.Native
-
getNode
public OgreNodeBase getNode()
-
-