|
P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
|
Raylib Model class - references a RayMesh, does not own it. More...
#include <RayModel.hpp>


Public Member Functions | |
| RayModel (RayMesh &mesh) | |
| ~RayModel ()=default | |
| void | setTexture (graphic::ITexture *texture) override |
| void | setAnimations (graphic::IAnimationSet *animations) override |
| int | getAnimationsSize () const override |
| void | setAnimation (int pos) override |
| int | getAnimation () const override |
| bool | updateAnimation () override |
| Steps one frame forward inside the current range. | |
| void | setFrameRange (int first, int last) override |
| Restricts playback to [first, last] of the current clip. | |
| int | getFirstFrame () const override |
| int | getLastFrame () const override |
| void | setFrame (int frame) override |
| int | getFrame () const override |
| Vector3f | getPosition () const override |
| void | setPosition (Vector3f position) override |
| Vector3f | getRotation () const override |
| void | setRotation (Vector3f rotation) override |
| Vector3f | getSize () const override |
| void | setSize (Vector3f size) override |
| Public Member Functions inherited from graphic::IModel | |
| virtual | ~IModel ()=default |
Friends | |
| class | RayWindow |
Raylib Model class - references a RayMesh, does not own it.
KNOWN NON-CONFORMANCE : raylib::UpdateModelAnimation() writes the pose into the mesh's own vertex buffer. Two RayModel sharing one RayMesh cannot sit on two different animation frames at the same instant - the last updateAnimation() called wins. The contract wants the opposite ; raylib is what falls short. Sharing position/rotation/size works. Deleting the model never touches the mesh, texture or animation set it was built from/bound to.
Note: raylib::UpdateModelAnimation() writes the pose into the mesh's own vertex buffer, so two RayModel instances sharing one RayMesh cannot be at two different animation frames at the same instant - a real raylib constraint, not something this wrapper works around.
|
inline |
|
default |
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
Restricts playback to [first, last] of the current clip.
A Mixamo export often bakes every move into a single clip : this is where "run" gets cut from "jump". Both bounds are clamped to the clip, and setAnimation() resets them.
Implements graphic::IModel.
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
Steps one frame forward inside the current range.
Implements graphic::IModel.
|
friend |