Untitled Game engine no.5  1.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Engine::Animation Struct Reference

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< MeshRendererrenderer = nullptr
 Renderer Reference.
 
std::vector< Ref< TextureLookup > > lookup = std::vector<Ref<TextureLookup>>()
 lookup table for animation frame data
 

Detailed Description

Container for texture based animations.

Constructor & Destructor Documentation

◆ Animation()

Engine::Animation::Animation ( const Ref< MeshRenderer > &  meshRenderer,
const std::vector< Ref< TextureLookup >> &  textureLookup 
)
inline

Construct an animation with a mesh renderer link and a list of texture lookups.

Parameters
renderer
lookup

Member Function Documentation

◆ drawFrame()

virtual void Engine::Animation::drawFrame ( )
inlinevirtual

Draw the current frame of animation to the MeshRenderer subclass

Parameters
shader
model

◆ Update()

static void Engine::Animation::Update ( const Scene scene)
inlinestatic

Update all animations in the scene

Parameters
scene

The documentation for this struct was generated from the following file: