54#ifndef _GDL_WII_MAIN_H
55#define _GDL_WII_MAIN_H
210void SetClearColor(u_char red, u_char grn, u_char blu, u_char alp);
240void SetClipBox(
short x1,
short y1,
short x2,
short y2);
378 void _PowerOffExit();
InitResolution
Definition mgdl-wii-main.h:104
InitFlags
Definition mgdl-wii-main.h:114
gdl::ErrorCallback SetErrorCallback(gdl::ErrorCallback func)
Sets an error callback function.
Definition wii-main.cpp:742
void Set2DMode(float farClip=100.f)
Sets the current projection matrix into an orthographic 2D projection matrix.
Definition wii-main.cpp:497
void Set2DMatrixRes(short xres, short yres)
Sets the resolution of the 2D projection matrix.
Definition wii-main.cpp:485
void InitSystem(gdl::InitVideoMode videoMode=gdl::ModeAuto, gdl::InitAspectMode aspectMode=gdl::AspectAuto, gdl::InitResolution resolution=gdl::HiRes, u_int flags=0)
Initializes the system.
Definition wii-main.cpp:124
void PrepDisplay()
Prepares the display for drawing graphics.
Definition wii-main.cpp:572
void Set3DMode(float farClip=1000.f)
Sets the current projection matrix into a 3D projection matrix.
Definition wii-main.cpp:510
void ResetClipBox()
Resets the clip box.
Definition wii-main.cpp:566
void Display()
Display graphics.
Definition wii-main.cpp:597
void ConsoleMode()
Sets the screen to console mode.
Definition wii-main.cpp:454
InitVideoMode
Definition mgdl-wii-main.h:78
void SetClipBox(short x1, short y1, short x2, short y2)
Sets the clip box.
Definition wii-main.cpp:538
void CallErrorCallback(const char *message,...)
Calls the currently set error callback function.
Definition wii-main.cpp:107
void SetClearColor(u_char red, u_char grn, u_char blu, u_char alp)
Sets the clear color.
Definition wii-main.cpp:524
InitAspectMode
Definition mgdl-wii-main.h:94
@ LowRes
OldSchool low-res mode (320x240/432x240) for NTSC and MPAL, 320x264/432x264 for PAL).
Definition mgdl-wii-main.h:106
@ HiRes
Standard hi-res mode (640x480 for NTSC and MPAL, 640x528 for PAL).
Definition mgdl-wii-main.h:105
@ DontMask
Disable screen masking which is used to hide garbage in the FrameBuffer during initialization.
Definition mgdl-wii-main.h:115
@ ForceNonInt
Force non-interlaced mode for low resolution modes regardless whether or not a component cable is use...
Definition mgdl-wii-main.h:116
@ OpenGX
OpenGX will be used for drawing and is expected to handle rendering state.
Definition mgdl-wii-main.h:118
@ AntiAliased
Enable anti-aliasing mode (ignored when resolution is set to gdl::LowRes).
Definition mgdl-wii-main.h:117
@ ModePAL
Initialize in PAL video mode (524 lines, 50Hz).
Definition mgdl-wii-main.h:81
@ ModeNTSC
Initialize in NTSC video mode (480 lines, 60Hz).
Definition mgdl-wii-main.h:80
@ ModePAL60
initialize in PAL 60Hz mode, similar to NTSC
Definition mgdl-wii-main.h:83
@ ModeMPAL
Initialize in MPAL/PAL60 video mode (similar to NTSC: 480 lines, 60Hz).
Definition mgdl-wii-main.h:82
@ ModeAuto
Auto selects a video mode according to the system's video settings.
Definition mgdl-wii-main.h:79
@ Aspect4x3
Initialize in 4:3 aspect ratio mode (640x480/320x240 in NTSC or MPAL mode, 640x528/320x264 in PAL mod...
Definition mgdl-wii-main.h:96
@ AspectAuto
Aspect ratio selected automatically (based on console settings).
Definition mgdl-wii-main.h:95
@ Aspect16x9
Initialize in 16:9 widescreen aspect ratio mode (854x480/432x240 in NTSC or MPAL mode,...
Definition mgdl-wii-main.h:97
bool IsProgressive()
Definition wii-main.cpp:808
void StartFadeoutExit()
Makes the library perform a program exit with a fade-out.
Definition wii-main.cpp:752
bool IsWidescreen()
Definition wii-main.cpp:802
bool IsComponentCableUsed()
Checks whether or not a Component Video cable is used.
Definition wii-main.cpp:796
void RevBytes(void *var, int size)
Reverses the byte order of a variable.
Definition wii-main.cpp:785
void DoProgramExit()
Makes the library exit as fast as possible.
Definition wii-main.cpp:761
void SetNonInterlaced(bool nonInterlaced)
Sets the video output to either be interlaced or non-interlaced.
Definition wii-main.cpp:820
bool IsLowResMode()
Definition wii-main.cpp:814
Library namespace.
Definition wii-globals.cpp:12
void(* ErrorCallback)(const char *message)
For the error callback.
Definition mgdl-wii-types.h:32