This module contains main and generic functions:
Init() and Quit(): these are the main functions of the library. They replace to SDL_Init() and SDL_Quit.
SetVideoMode() uses Config struct to setup a video mode, it replaces SDL_SetVideoMode().
Update() is the main way to update all systems: graphics,events,timing,etc.It also replace SDL_Flip().
XML parser, CRC32 functions, true random number generation and get useful information.
Note that you always have to call to CRM32Pro.Init() to initialize the library and CRM32Pro.Quit() to close it.
- Created on 10 June 2001
- Last modified on 30 August 2012
|
#define | ACCEL_HARDSMOOTH 2 |
| Used with Config.VideoAccel to set hardware mode with smooth system (double-buffer and waiting vsync).
|
|
#define | ACCEL_HARDSPEED 3 |
| Used with Config.VideoAccel to set hardware mode at full speed (single-buffer without waiting vsync).
|
|
#define | ACCEL_SOFTWARE 1 |
| Used with Config.VideoAccel to set software mode with optimizations.
|
|
#define | CONFEATURE_DISABLE_FADE 4 |
| Used with ConFeatures() method. Disables the fading effect when opening or closing the console.
|
|
#define | CONFEATURE_DISABLE_KEY 1 |
| Used with ConFeatures() method. Disables the ~ key for displaying/hiding the console.
|
|
#define | CONFEATURE_OUTPUT_ONLY 2 |
| Used with ConFeatures() method. Disables the console input so it will just display output messages.
|
|
#define | CRM32PRO_BUTTON_LEFT 1 |
| Used with CRM32Pro.mouse_buttons or CRM32Pro.mouse_prevbuttons. It informs of a left button click.
|
|
#define | CRM32PRO_BUTTON_MIDDLE 2 |
| Used with CRM32Pro.mouse_buttons or CRM32Pro.mouse_prevbuttons. It informs of a middle button click.
|
|
#define | CRM32PRO_BUTTON_RIGHT 4 |
| Used with CRM32Pro.mouse_buttons or CRM32Pro.mouse_prevbuttons. It informs of a right button click.
|
|
#define | EVENT_CODE_RENDER 1 |
| When the event returned is EVENT_LOGICWAIT, if the event.user.code is equal to EVENT_CODE_RENDER sets that a Render frame occurred.
|
|
#define | EVENT_LOGICWAIT 30 |
| Event type returned by CRM32Pro.Update() while it is waiting to fulfill the Logic Rate.
|
|
#define | RENDER_DEFAULT 1 |
| Used with Config.VideoRender to use default backend. Default setting.
|
|
#define | RENDER_DIRECTX 4 |
| Used with Config.VideoRenderer to use DirectX backend. Only for Win32. Deprecated.
|
|
#define | RENDER_FBCON 16 |
| Used with Config.VideoRenderer to use Frame Buffer Console backend. Only for Linux. Deprecated.
|
|
#define | RENDER_OPENGL 64 |
| Used with Config.VideoRenderer to use glSDL backend(OpenGL on 2D mode). For Win32/Win64, Linux and MacOSX.
|
|
#define | RENDER_QUARTZ 128 |
| Used with Config.VideoRenderer to use Quartz backend. Only for MacOSX.
|
|
#define | RENDER_WINDIB 2 |
| Used with Config.VideoRenderer to use Windib backend. Only for Win32/Win64.
|
|
#define | RENDER_X11 8 |
| Used with Config.VideoRenderer to use X11 backend. Only for Linux/MacOSX.
|
|
#define | UPDATEFRAME_ALWAYS 2 |
| Used with RenderNeeded() method. Set the render engine to full redraw on each frame.
|
|
#define | UPDATEFRAME_NEXT 1 |
| Used with RenderNeeded() method. Set the render engine to draw on next frame update.
|
|
#define | UPDATEFRAME_NONE 0 |
| Used with RenderNeeded() method. Set the render engine to avoid to draw on next frame update.
|
|
|
DllExport void *(* | CRM32Pro_memcpy )(void *dest, const void *src, size_t n) |
|
DllExport void*(* CRM32Pro_memcpy)(void *dest, const void *src, size_t n) |
Optimized 'memcpy()' function for each platform: AMD(K5,K6,K7,K8) and Intel(Pentium MMX,Pentium II, Pentium III,Pentium 4,Pentium M)