Untitled Game engine no.5
1.0
|
Container for texture based animations. More...
#include <Animation.hpp>
Public Member Functions | |
Animation (const Ref< MeshRenderer > &meshRenderer, const std::vector< Ref< TextureLookup >> &textureLookup) | |
void | UpdateTime () |
Advance frame data if needed. | |
virtual void | drawFrame () |
Static Public Member Functions | |
static void | Update (const Scene &scene) |
Public Attributes | |
Ref< MeshRenderer > | renderer = nullptr |
Renderer Reference. | |
std::vector< Ref< TextureLookup > > | lookup = std::vector<Ref<TextureLookup>>() |
lookup table for animation frame data | |
Container for texture based animations.
|
inline |
Construct an animation with a mesh renderer link and a list of texture lookups.
renderer | |
lookup |
|
inlinevirtual |
Draw the current frame of animation to the MeshRenderer subclass
shader | |
model |
|
inlinestatic |
Update all animations in the scene
scene |