目录

Renderable

Class Info

public class Renderable extends Component

A Renderable component class.

Public Method Summary

Qualifier and Type

Method Name and Description

public static Component.Descriptor<Renderable>

descriptor()

Obtains the Renderable component descriptor.

public boolean

isShadowCaster()

Checks whether a Renderable component casts shadows on others.

public boolean

isShadowReceiver()

Checks whether a Renderable component receives shadows cast by others.

public Renderable

setCastShadow(boolean enable)

Sets whether a Renderable component casts shadows on others.

public Renderable

setReceiveShadow(boolean enable)

Sets whether a Renderable component receives shadows cast by others.

public Box

getBoundingBox()

Obtains the bounding box.

Public Methods

[h2]descriptor

Method

public static Component.Descriptor<Renderable> descriptor()

Obtains the Renderable component descriptor.

Returns

Type

Description

Component.Descriptor<Renderable>

Renderable component descriptor.

[h2]isShadowCaster

Method

public boolean isShadowCaster()

Checks whether a Renderable component casts shadows on others.

Returns

Type

Description

boolean

Whether a Renderable component casts shadows on others.

[h2]isShadowReceiver

Method

public boolean isShadowReceiver()

Checks whether a Renderable component receives shadows cast by others.

Returns

Type

Description

boolean

Whether a Renderable component receives shadows cast by others.

[h2]setCastShadow

Method

public Renderable setCastShadow(boolean enable)

Sets whether a Renderable component casts shadows on others.

Parameters

Name

Description

enable

Indicates whether a Renderable component casts shadows on others.

Returns

Type

Description

Renderable

Instance of this class.

[h2]setReceiveShadow

Method

public Renderable setReceiveShadow(boolean enable)

Sets whether a Renderable component receives shadows cast by others.

Parameters

Name

Description

enable

Indicates whether a Renderable component receives shadows cast by others.

Returns

Type

Description

Renderable

Instance of this class.

[h2]getBoundingBox

Method

public Box getBoundingBox()

Obtains the bounding box.

Returns

Type

Description

Box

Bounding box.