SDL graphics environment. More...
#include <frz_sdl.hpp>


Public Member Functions | |
| SDLSystem (const char *title, Script &s, int width, int height, int videomode, uint32_t t0=0) | |
| Constructs a SDLSystem object. | |
| int | operator() () |
| Executes the animation. | |
Static Public Member Functions | |
| static int | parseCmd (int argc, char **argv, int &width, int &height, int &videomode, uint32_t &t0) |
| Parses the command line and populate initialization data. | |
SDL graphics environment.
This is a graphics environment which uses the SDL library for graphics output.
| Frz::SDLSystem::SDLSystem | ( | const char * | title, | |
| Script & | s, | |||
| int | width, | |||
| int | height, | |||
| int | videomode, | |||
| uint32_t | t0 = 0 | |||
| ) |
Constructs a SDLSystem object.
| title | Window title. | |
| s | The animation script object. | |
| width | Picture width in pixels. | |
| height | Picture height in pixels. | |
| videomode | SDL video mode. | |
| t0 | Start time value in milliseconds. |
| static int Frz::SDLSystem::parseCmd | ( | int | argc, | |
| char ** | argv, | |||
| int & | width, | |||
| int & | height, | |||
| int & | videomode, | |||
| uint32_t & | t0 | |||
| ) | [static] |
Parses the command line and populate initialization data.
The command line is parsed for specific values of the constructor arguments. If some values are not provided, default values are set. All arguments passed by reference are modified.
| argc | First argument of the main function. | |
| argv | Second argument of the main function. | |
| width | Picture width in pixels. | |
| height | Picture height in pixels. | |
| videomode | SDL video mode. | |
| t0 | Start time value in milliseconds. |
1.6.3