RaylibModel

Model implementation for Raylib.

Constructors

this
this(Display display, string type)

Members

Functions

changeVariant
void changeVariant(string id, string variant)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw()
reload
void reload()

Variables

bones
Bone*[] bones;
Undocumented in source.
bonesID
Bone*[string] bonesID;
Undocumented in source.

Inherited Members

From Model

__anonymous
mixin Object3D.Implement

Position in the model is relative to the model's bottom, so if a cell is placed at the same position as the model, the model will be standing on the cell.

type
string type;

Type of the model.

animations
Animation[] animations;

Active animations.

seed
ulong seed;

Seed to use for RNG calls related to generation of this model's resources.

id
size_t id [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
make
Model make(Display display, string type)

Create a new model.

changeVariant
void changeVariant(string id, string variant)

Change the variant used for the node with given ID.

changeVariant
void changeVariant(string id)

Randomize the variant used for the node with given ID.

animate
void animate(string type, Duration duration, uint times)

Run an animation.

animateInf
void animateInf(string type, Duration duration)

Run an animation indefinitely.

getBone
Pack.Resource!string getBone(SkeletonNode node)

From WithDrawableResources

draw
void draw()

Draw this resource, if supported by the renderer.

Meta