|
raylib_impl 0.1.0
Vendor raylib 5.5 : IGraphic2Module / IGraphic3Module / IAudioModule
|
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 |
| void | setFrameRange (int first, int last) override |
| 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 |
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 |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
friend |