Frz::System Class Reference

Animation system virtual class. More...

#include <frz_system.hpp>

Inheritance diagram for Frz::System:
Inheritance graph
[legend]
Collaboration diagram for Frz::System:
Collaboration graph
[legend]

List of all members.

Classes

struct  synchro

Public Member Functions

 System (Script &s, int w, int h, bool allocPixbuf=false)
 Constructs an animation system object.
virtual void draw (uint32_t time, void *buf=0)
 Draws a new frame.
virtual int operator() ()=0
 Executes the animation.

Protected Member Functions

uint32_t uTime ()
 Returns the current time. Used for calculating the time counter values.

Protected Attributes

const char * ts [MAX_TM]
 Time counter names.
uint32_t t [MAX_TM]
 Time counter values.
trans transforms [MAX_OBJ]
 The array of transforms.

Detailed Description

Animation system virtual class.


Constructor & Destructor Documentation

Frz::System::System ( Script s,
int  w,
int  h,
bool  allocPixbuf = false 
)

Constructs an animation system object.

Parameters:
s The animation script object.
w Picture width in pixels.
h Picture height in pixels.
allocPixbuf if true, allocate a screen buffer.

Member Function Documentation

virtual void Frz::System::draw ( uint32_t  time,
void *  buf = 0 
) [virtual]

Draws a new frame.

Parameters:
time Current animation time in milliseconds.
buf If not zero, used as screen buffer address. Otherwise, use the screen address allocated by the constructor.
virtual int Frz::System::operator() (  )  [pure virtual]

Executes the animation.

This virtual operator must be implemented by the graphics environment.

Implemented in Frz::BMPSystem, Frz::PS3FBSystem, and Frz::SDLSystem.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Friends
Generated on Thu Jun 10 17:37:47 2010 for freezer-0.1.0 by  doxygen 1.6.3