Animation system virtual class. More...
#include <frz_system.hpp>


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. | |
Animation system virtual class.
| Frz::System::System | ( | Script & | s, | |
| int | w, | |||
| int | h, | |||
| bool | allocPixbuf = false | |||
| ) |
Constructs an animation system object.
| s | The animation script object. | |
| w | Picture width in pixels. | |
| h | Picture height in pixels. | |
| allocPixbuf | if true, allocate a screen buffer. |
| virtual void Frz::System::draw | ( | uint32_t | time, | |
| void * | buf = 0 | |||
| ) | [virtual] |
Draws a new frame.
| 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.
1.6.3