|
MTek-GDL 0.100.4-muffintrap
|
Library namespace. More...
Namespaces | |
| namespace | Keyboard |
| Keyboard namespace. | |
| namespace | wii |
| Wii specific functions, structs and global variables. | |
Data Structures | |
| class | FFont |
| Fixed font handling class. More... | |
| class | ImageWii |
| Image handling class. More... | |
| struct | Sprite |
| Sprite entry structure. More... | |
| class | SpriteSet |
| Sprite set handling class. More... | |
| class | Texture |
| Texture handling class. More... | |
Typedefs | |
| typedef void(* | ErrorCallback) (const char *message) |
| For the error callback. | |
| typedef bool() | ImageCapFunc(const char *fileName) |
| For the internal screen image capture function pointer. | |
| typedef void() | InputPollFunc(void) |
Enumerations | |
| enum | InitVideoMode { ModeAuto = 0 , ModeNTSC , ModePAL , ModeMPAL , ModePAL60 } |
| enum | InitAspectMode { AspectAuto = 0 , Aspect4x3 , Aspect16x9 } |
| enum | InitResolution { HiRes = 0 , LowRes } |
| enum | InitFlags { DontMask = 1<<0 , ForceNonInt = 1<<1 , AntiAliased = 1<<2 , OpenGX = 1<<3 } |
| enum | TextureFormatModes { I4 = GX_TF_I4 , I8 = GX_TF_I8 , IA4 = GX_TF_IA4 , IA8 = GX_TF_IA8 , RGB565 = GX_TF_RGB565 , RGB5A3 = GX_TF_RGB5A3 , RGBA8 = GX_TF_RGBA8 } |
| enum | TextureAllocModes { MEM1 = 0 , MEM2 = 1 } |
Functions | |
| void | _put (short x, short y, short cx, short cy, short px, short py, float angle, float scale, Color4f *col, short xSize, short ySize, GXTexObj *texObj, void *vList, void *tList) |
| void | _putS (short x1, short y1, short x2, short y2, Color4f *col, short xSize, short ySize, GXTexObj *texObj, void *vList, void *tList) |
| void | _put (short x, short y, short cx, short cy, short px, short py, float angle, float scale, u_int col, short xSize, short ySize, GXTexObj *texObj, void *vList, void *tList) |
| void | _putS (short x1, short y1, short x2, short y2, u_int col, short xSize, short ySize, GXTexObj *texObj, void *vList, void *tList) |
| void | DrawPoint (short x, short y, u_int col) |
| Draws a point or a single pixel. | |
| void | DrawLine (short x1, short y1, short x2, short y2, u_int col) |
| Draws a line. | |
| void | DrawBox (short x1, short y1, short x2, short y2, u_int col) |
| Draws a box. | |
| void | DrawBoxF (short x1, short y1, short x2, short y2, u_int col) |
| Draws a filled box. | |
| void | DrawLineG (short x1, short y1, short x2, short y2, u_int col_a, u_int col_b) |
| Draws a gouraud-shaded line. | |
| void | DrawBoxG (short x1, short y1, short x2, short y2, u_int tl_col, u_int tr_col, u_int br_col, u_int bl_col) |
| Draws a gouraud-shaded box. | |
| void | DrawBoxFG (short x1, short y1, short x2, short y2, u_int tl_col, u_int tr_col, u_int br_col, u_int bl_col) |
| Draws a filled gouraud-shaded box. | |
| void | SaveScreen (const char *fileName) |
| Saves a screenshot. | |
| typedef | void (ConnectCallbackFunc(bool)) |
| Keyboard and mouse connect/disconnect callback. | |
| void | InitSystem (gdl::InitVideoMode videoMode=gdl::ModeAuto, gdl::InitAspectMode aspectMode=gdl::AspectAuto, gdl::InitResolution resolution=gdl::HiRes, u_int flags=0) |
| Initializes the system. | |
| void | ConsoleMode () |
| Sets the screen to console mode. | |
| void | Set2DMatrixRes (short xres, short yres) |
| Sets the resolution of the 2D projection matrix. | |
| void | Set2DMode (float farClip=100.f) |
| Sets the current projection matrix into an orthographic 2D projection matrix. | |
| void | Set3DMode (float farClip=1000.f) |
| Sets the current projection matrix into a 3D projection matrix. | |
| void | SetClearColor (u_char red, u_char grn, u_char blu, u_char alp) |
| Sets the clear color. | |
| void | SetClearColor (u_int color) |
| Sets the clear color. | |
| void | SetClipBox (short x1, short y1, short x2, short y2) |
| Sets the clip box. | |
| void | ResetClipBox () |
| Resets the clip box. | |
| void | PrepDisplay () |
| Prepares the display for drawing graphics. | |
| void | Display () |
| Display graphics. | |
| gdl::ErrorCallback | SetErrorCallback (gdl::ErrorCallback func) |
| Sets an error callback function. | |
| void | CallErrorCallback (const char *message,...) |
| Calls the currently set error callback function. | |
| void | Play2D (float pitch, float volume, float x, float y) |
| Plays a sound with 2D stereo panning. | |
| int | MakeValuePOT (int value) |
| Pads out a value to make it a power-of-two. | |
Variables | |
| short | ScreenXres |
| short | ScreenYres |
| short | ScreenCenterX |
| short | ScreenCenterY |
| bool | ConsoleActive =false |
| float | Delta =1.f |
| Delta time between gdl::PrepDisplay() and gdl::Display() calls. | |
| gdl::ErrorCallback | ErrorCB =NULL |
| Error messaging callback pointer. | |
| bool | UsbInitialized = false |
Library namespace.
| void gdl::_put | ( | short | x, |
| short | y, | ||
| short | cx, | ||
| short | cy, | ||
| short | px, | ||
| short | py, | ||
| float | angle, | ||
| float | scale, | ||
| Color4f * | col, | ||
| short | xSize, | ||
| short | ySize, | ||
| GXTexObj * | texObj, | ||
| void * | vList, | ||
| void * | tList | ||
| ) |
Draws an image with rotation and scaling
| void gdl::Play2D | ( | float | pitch, |
| float | volume, | ||
| float | x, | ||
| float | y | ||
| ) |
Plays a sound with 2D stereo panning.
| [in] | pitch | Pitch of sound (1.0 is normal pitch). |
| [in] | volume | Volume of sound (100 is full volume). |
| [in] | x | X position of sound (relative to screen). |
| [in] | y | Y position of sound (this parameter does nothing for now). |