Renderable

public abstract class Renderable
Known Direct Subclasses

Base class for rendering in 3D space by attaching to a Node with setRenderable(Renderable).

Fields

protected CollisionShape collisionShape

Protected Constructors

Public Methods

CollisionShape
getCollisionShape()
Get the CollisionShape used for collision detection with this Renderable.
Material
getMaterial(int submeshIndex)
Returns the material bound to the specified submesh.
Material
getMaterial()
Returns the material bound to the first submesh.
int
getRenderPriority()
Get the render priority that controls the order of rendering.
int
getSubmeshCount()
Returns the number of submeshes that this renderable has.
boolean
isShadowCaster()
Returns true if configured to cast shadows on other renderables.
boolean
isShadowReceiver()
Returns true if configured to receive shadows cast by other renderables.
void
setCollisionShape(CollisionShape collisionShape)
Set the CollisionShape used for collision detection with this Renderable.
void
setMaterial(Material material)
Sets the material bound to the first submesh.
void
setMaterial(int submeshIndex, Material material)
Sets the material bound to the specified submesh.
void
setRenderPriority(int renderPriority)
Set the render priority to control the order of rendering.
void
setShadowCaster(boolean isShadowCaster)
Sets whether the renderable casts shadow on other renderables in the scene.
void
setShadowReceiver(boolean isShadowReceiver)
Sets whether the renderable receives shadows cast by other renderables in the scene.
void

Inherited Methods

Fields

protected CollisionShape collisionShape

Protected Constructors

protected Renderable (Renderable other)

Parameters
other

Public Methods

public CollisionShape getCollisionShape ()

Get the CollisionShape used for collision detection with this Renderable.

public Material getMaterial (int submeshIndex)

Returns the material bound to the specified submesh.

Parameters
submeshIndex

public Material getMaterial ()

Returns the material bound to the first submesh.

public int getRenderPriority ()

Get the render priority that controls the order of rendering. The priority is between a range of 0 (rendered first) and 7 (rendered last). The default value is 4.

public int getSubmeshCount ()

Returns the number of submeshes that this renderable has. All Renderables have at least one.

public boolean isShadowCaster ()

Returns true if configured to cast shadows on other renderables.

public boolean isShadowReceiver ()

Returns true if configured to receive shadows cast by other renderables.

public void setCollisionShape (CollisionShape collisionShape)

Set the CollisionShape used for collision detection with this Renderable.

Parameters
collisionShape

public void setMaterial (Material material)

Sets the material bound to the first submesh.

Parameters
material

public void setMaterial (int submeshIndex, Material material)

Sets the material bound to the specified submesh.

Parameters
submeshIndex
material

public void setRenderPriority (int renderPriority)

Set the render priority to control the order of rendering. The priority is between a range of 0 (rendered first) and 7 (rendered last). The default value is 4.

Parameters
renderPriority

public void setShadowCaster (boolean isShadowCaster)

Sets whether the renderable casts shadow on other renderables in the scene.

Parameters
isShadowCaster

public void setShadowReceiver (boolean isShadowReceiver)

Sets whether the renderable receives shadows cast by other renderables in the scene.

Parameters
isShadowReceiver

public void updateFromDefinition (RenderableDefinition definition)

Parameters
definition

Send feedback about...