|
MTek-GDL 0.100.4-muffintrap
|
Wii specific functions, structs and global variables. More...
Data Structures | |
| struct | TEX2f32 |
| UV texture coordinate. More... | |
| struct | VERT2s16 |
| 2D vertex coordinate. More... | |
| struct | VERT3f32 |
| 3D vertex coordinate. More... | |
Functions | |
| void | RevBytes (void *var, int size) |
| Reverses the byte order of a variable. | |
| bool | IsComponentCableUsed () |
| Checks whether or not a Component Video cable is used. | |
| bool | IsWidescreen () |
| bool | IsProgressive () |
| bool | IsLowResMode () |
| void | SetNonInterlaced (bool nonInterlaced) |
| Sets the video output to either be interlaced or non-interlaced. | |
| void | StartFadeoutExit () |
| Makes the library perform a program exit with a fade-out. | |
| void | DoProgramExit () |
| Makes the library exit as fast as possible. | |
| void | _ResetExit () |
| void | _PowerOffExit () |
| void | SetAutoFlush (bool flush) |
| Texture flusing mode. | |
| void | SetTexAllocMode (bool allocMode) |
| Sets which memory area the next texture will be allocated in. | |
Variables | |
| GXRModeObj * | rmode |
| Pointer to video and renderer settings (see GXRModeObj for details). | |
| void * | gp_fifo = NULL |
| Pointer to GP FIFO buffer where GP commands are stored and sent to the GP. | |
| void * | FB [2] = {NULL,NULL} |
| K1 pointers to the display framebuffers, pixel format is in YUV2 format. | |
| GXRModeObj * | conRMode = NULL |
| Console rmode settings. | |
| void * | conFB = NULL |
| Console screen framebuffer. | |
| short | ActiveFB = 0 |
| Active framebuffer page index. | |
| void * | UpscaleBuff = NULL |
| Pointer for upscale texture buffer for upscaling 240p to a 480p framebuffer (since progressive scan only supports 480/576 vertical resolution). | |
| GXTexObj | UpscaleTexObj |
| Texture object for the upscale buffer. | |
| bool | LowResolutionMode = false |
| Low-resolution mode flag. | |
| bool | ProgressiveScanMode = false |
| bool | WidescreenMode = false |
| Widescreen mode flag. | |
| bool | AutoFlush = false |
| Automatic texture flush flag (for gdl::Texture::PokePixel()). | |
| bool | TexAllocMode = gdl::MEM1 |
| Allocation mode for texture and image classes. | |
| bool | OpenGXMode = false |
| OpenGX is used flag. | |
| Mtx44 | ProjMtx |
| Global projection matrix used by the library's graphics functions. | |
| Mtx | ModelMtx |
| Global model matrix object used by the library's graphics functions. | |
| Mtx | ViewMtx |
| Global view matrix object used by the library's graphics functions. | |
| bool | DoExitSequence = false |
| Exit sequence flag (for built-in power off/reset handling). | |
| float | DoExitCount = 0 |
| Exit sequence counter (for power off/reset). | |
| bool | ExitType = 0 |
| Exit type (0: Power off, 1: Soft Reset back to Homebrew Channel). | |
| float | CPUdelta = 1.f |
| CPU delta time. | |
| float | GPUdelta = 1.f |
| GPU delta time. | |
| bool | ScreenCapIssued = false |
| Screen capture issue flag (set by the Image Handling Module) | |
| char * | ScreenCapFileName = NULL |
| Screen capture file name (set by the Image Handling Module) | |
| ImageCapFunc * | ScreenCapFunc = NULL |
| Screen capture function pointer (set by the Image Handling Module) | |
| InputPollFunc * | PollKeyboardCallback = NULL |
| Keyboard poll function callback (set by the keyboard portion of the Input Module) | |
| const char * | LastMusicFile =NULL |
| Pointer to string of last music file played. | |
| float | UserMusicVolume =100.f |
| User music volume. | |
| float | MasterMusicVolume =100.f |
| Master music volume. | |
| float | MasterSfxVolume =100.f |
| Master sounds volume. | |
| bool | ProgressiveMode |
| Progressive scan mode flag. | |
Wii specific functions, structs and global variables.
| void gdl::wii::DoProgramExit | ( | ) |
Makes the library exit as fast as possible.
Closes the video display and quits the program
| bool gdl::wii::IsComponentCableUsed | ( | ) |
Checks whether or not a Component Video cable is used.
This function will return a non-zero value if a Component Cable is connected to the console. This is useful for projects that uses the low-resolution video mode mode and you want to implement a non-interlaced mode test when your program is first run on a console not set to Progressive Scan to test whether or not the user's TV supports non-interlaced video through Component video.
| bool gdl::wii::IsLowResMode | ( | ) |
Checks whether or not the console is set in a low display resolution.
| bool gdl::wii::IsProgressive | ( | ) |
Checks whether or not the console is set to display in progressive scan mode.
| bool gdl::wii::IsWidescreen | ( | ) |
Checks whether or not the console is set to display in widescreen.
Reverses the byte order of a variable.
Reverses the byte order of 16-bit and 32-bit variables useful when handling little-endian binary data.
| [in,out] | *var | Pointer to variable to reverse byte order. |
| [in] | size | Size of variable in bytes (for convenience, use sizeof()). |
| void gdl::wii::SetNonInterlaced | ( | bool | nonInterlaced | ) |
Sets the video output to either be interlaced or non-interlaced.
This function switches between a non-interlaced video more or an interlaced video mode on-the-fly useful for implementing a non-interlaced compatibility test of the user's TV as not all TVs support non-interlaced video through component.
| [in] | nonInterlaced | If true, the video output will become non-interlaced otherwise the video output will be made interlaced. |
| void gdl::wii::StartFadeoutExit | ( | ) |
Makes the library perform a program exit with a fade-out.
This function will work only during a gdl::PrepDisplay() and gdl::Display() loop. It pretty much does the same thing that would happen if you press reset on the console.
| float gdl::wii::CPUdelta = 1.f |
CPU delta time.
Similar to gdl::Delta but contains the delta time it took between a gdl::PrepDisplay() and gdl::Display() pair CPU-wise. It does not read the exact CPU usage but a rough estimation of it useful for profiling/benchmarking.
You may want to keep this value to stay less than 1.0f if you want to maintain 60FPS.
| float gdl::wii::GPUdelta = 1.f |
GPU delta time.
Similar to gdl::Delta but contains the delta time it took for the GPU to finish rendering a frame when gdl::Display() is called. It does not read the exact GPU usage but a rough estimation of it useful for profiling/benchmarking.
You may want to keep this value to stay less than 1.0f if you want to maintain 60FPS.
| Mtx gdl::wii::ModelMtx |
Global model matrix object used by the library's graphics functions.
Modifying these will also affect the library's graphics routines. Load the model matrix to the GX with the GX_LoadPosMtxImm() function.
| Mtx44 gdl::wii::ProjMtx |
Global projection matrix used by the library's graphics functions.
Modifying this does not really affect the library's graphics routines as it is not directly applied to the GX when calling most graphics functions. Load the projection matrix to the GX with the GX_LoadProjectionMtx() function.
| GXRModeObj * gdl::wii::rmode |
Pointer to video and renderer settings (see GXRModeObj for details).
Modifying this does not really affect the library's graphics routines as it is not directly applied to the video encoder when calling most graphics functions. Used mostly for getting the exact framebuffer resolution.