PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
pk::GLFrameAnimation Class Reference

#include <GLFrameAnimation.hpp>

Collaboration diagram for pk::GLFrameAnimation:
Collaboration graph

Public Member Functions

 GLFrameAnimation ()
 
virtual ~GLFrameAnimation ()
 
void printFrames ()
 
void addFrame (GLRect frame)
 
void loop (bool l)
 
void play (GLSprite &sprite)
 

Private Attributes

std::vector< GLRectm_frames
 
bool m_loop
 

Constructor & Destructor Documentation

◆ GLFrameAnimation()

pk::GLFrameAnimation::GLFrameAnimation ( )

◆ ~GLFrameAnimation()

virtual pk::GLFrameAnimation::~GLFrameAnimation ( )
virtual

Member Function Documentation

◆ addFrame()

void pk::GLFrameAnimation::addFrame ( GLRect  frame)

◆ loop()

void pk::GLFrameAnimation::loop ( bool  l)
inline

◆ play()

void pk::GLFrameAnimation::play ( GLSprite sprite)

◆ printFrames()

void pk::GLFrameAnimation::printFrames ( )

Member Data Documentation

◆ m_frames

std::vector<GLRect> pk::GLFrameAnimation::m_frames
private

◆ m_loop

bool pk::GLFrameAnimation::m_loop
private

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