|
| #define | GSKIT_ALLOC_SYSBUFFER 0x00 |
| | GS VRAM "System" Allocation (Framebuffer, ZBuffer, etc).
|
| #define | GSKIT_ALLOC_USERBUFFER 0x01 |
| | GS VRAM "User" Allocation (Texture, CLUT, etc).
|
| #define | GSKIT_ALLOC_ERROR 0x00 |
| | Return this is VRAM allocation fails.
|
| #define | GS_GIF_BLOCKSIZE 0x7fff |
| | GS GIF Data Transfer Blocksize.
|
| #define | GS_VRAM_BLOCKSIZE_8K 8192 |
| | VRAM Allcoate Blocksize (For System Buffers)(CRITICAL FOR VRAM ALIGNMENT).
|
| #define | GS_VRAM_BLOCKSIZE_256 256 |
| | VRAM Allcoate Blocksize (For User Textures)(CRITICAL FOR VRAM ALIGNMENT).
|
| #define | GS_VRAM_TBWALIGN 64 |
| | Texture Base Width Allocation Allignment (32/24/16 Bit Textures).
|
| #define | GS_VRAM_TBWALIGN_CLUT 128 |
| | Texture Base Width Allocation Allignment (8/4 Bit CLUT Textures).
|
| #define | GS_CMODE_REPEAT 0x00 |
| | Repeats ("Tiles") Texture Across the Surface.
|
| #define | GS_CMODE_CLAMP 0x01 |
| | Stretches Texture Across the Surface.
|
| #define | GS_CMODE_REGION_CLAMP 0x02 |
| | Stretches Texture Across the Region Defined by MINU, MAXU, MINV, and MAXV.
|
| #define | GS_CMODE_REGION_REPEAT 0x03 |
| | Repeats a Portion of the Texture Defined by UMSK (MINU), VMSK (MINV), UFIX (MAXU), and VFIX (MAXV).
|
| #define | GS_CMODE_RESET 0xFF |
| | Resets CLAMP vales to whatever is in gsGlobal->Clamp.
|
| #define | GS_SCISSOR_RESET 0x00 |
| | Resets SCISSOR values to the entire display bounds.
|
| #define | GS_ZTEST_OFF 0x01 |
| | Turns off Z Testing.
|
| #define | GS_ZTEST_ON 0x02 |
| | Turns on Z Testing.
|
| #define | GS_ATEST_OFF 0x03 |
| | Turns off Alpha Testing (Source).
|
| #define | GS_ATEST_ON 0x04 |
| | Turns on Alpha Testing (Source).
|
| #define | GS_D_ATEST_OFF 0x05 |
| | Turns off Alpha Testing (Destination).
|
| #define | GS_D_ATEST_ON 0x06 |
| | Turns on Alpha Testing (Destination).
|
| #define | GS_FILTER_NEAREST 0x00 |
| | Use simple filtering (nearest neighbor).
|
| #define | GS_FILTER_LINEAR 0x01 |
| | Use bilinear filter on texture.
|
| #define | GS_CLUT_STORAGE_CSM1 0x00 |
| | Use clut storage mode CSM1.
|
| #define | GS_CLUT_STORAGE_CSM2 0x01 |
| | Use clut storage mode CSM2.
|
|
| u32 | gsKit_vram_alloc (GSGLOBAL *gsGlobal, u32 size, u8 type) |
| | GS VRAM Allocation.
|
| void | gsKit_vram_clear (GSGLOBAL *gsGlobal) |
| | GS VRAM Clear.
|
| void | gsKit_sync_flip (GSGLOBAL *gsGlobal) |
| void | gsKit_lock_buffer (GSGLOBAL *gsGlobal) |
| void | gsKit_unlock_buffer (GSGLOBAL *gsGlobal) |
| int | gsKit_lock_status (GSGLOBAL *gsGlobal) |
| void | gsKit_display_buffer (GSGLOBAL *gsGlobal) |
| void | gsKit_switch_context (GSGLOBAL *gsGlobal) |
| void | gsKit_setactive (GSGLOBAL *gsGlobal) |
| | Sets Your Active Framebuffer.
|
| void | gsKit_finish (void) |
| | Blocks until FINISH is triggered.
|
| void | gsKit_vsync_wait (void) |
| | Blocks Until a VSync.
|
| void | gsKit_hsync_wait (void) |
| | Blocks until a HSync.
|
| void | gsKit_vsync_nowait (void) |
| | Initiates a vsync but doesn't block.
|
| int | gsKit_add_vsync_handler (int(*vsync_callback)(int)) |
| | Installs a vsync interrupt handler (vblank_start).
|
| void | gsKit_remove_vsync_handler (int callback_id) |
| | Removes a vsync interrupt handler.
|
| int | gsKit_add_hsync_handler (int(*hsync_callback)(int)) |
| | Installs a hsync interrupt handler (hblank_start).
|
| void | gsKit_remove_hsync_handler (int callback_id) |
| | Removes a hsync interrupt handler.
|
| int | gsKit_add_finish_handler (int(*finish_callback)(int)) |
| | Installs a finish interrupt handler.
|
| void | gsKit_remove_finish_handler (int callback_id) |
| | Removes a finish interrupt handler.
|
| void | gsKit_get_field (GSGLOBAL *gsGlobal) |
| | Sets gsGlobal->EvenOrOdd depending on current field drawing.
|
| void | gsKit_set_drawfield (GSGLOBAL *gsGlobal, u8 field) |
| | Sets the GS to draw only on even/odd/both fields (from libgraph).
|
| void | gsKit_clear (GSGLOBAL *gsGlobal, u64 Color) |
| void | gsKit_set_scissor (GSGLOBAL *gsGlobal, u64 ScissorBounds) |
| void | gsKit_set_test (GSGLOBAL *gsGlobal, u8 Preset) |
| void | gsKit_set_clamp (GSGLOBAL *gsGlobal, u8 Preset) |
| void | gsKit_set_primalpha (GSGLOBAL *gsGlobal, u64 AlphaMode, u8 PerPixel) |
| | Sets the Alpha Blending Parameters.
|
| void | gsKit_set_texfilter (GSGLOBAL *gsGlobal, u8 FilterMode) |
| | Sets the Texture Filtering Parameters.
|
| void | gsKit_set_texclut (GSGLOBAL *gsGlobal, gs_texclut texClut) |
| | Sets the CLUT position specfications.
|
| void | gsKit_set_dither_matrix (GSGLOBAL *gsGlobal) |
| | Sets the Dither Matrix Setting.
|
| void | gsKit_set_dither (GSGLOBAL *gsGlobal) |
| | Enables/Disables dithering, with the gsGlobal Dithering option.
|
| GSQUEUE | gsKit_set_finish (GSGLOBAL *gsGlobal) |
| | Append the Current Queue with a GS_FINISH Register.
|
| void | gsKit_queue_reset (GSQUEUE *Queue) |
| | Reset specified drawqueue to it's initial state (Useful for clearing the Persistent Queue).
|
| void | gsKit_queue_exec (GSGLOBAL *gsGlobal) |
| | Normal User Draw Queue "Execution" (Kicks Oneshot and Persistent Queues).
|
| void | gsKit_queue_exec_real (GSGLOBAL *gsGlobal, GSQUEUE *Queue) |
| | Specific Draw Queue "Execution" (Kicks the Queue passed for the second argument).
|
| void * | gsKit_alloc_ucab (int size) |
| | Allocate UCAB buffer in GSQUEUE, internal use only.
|
| void | gsKit_free_ucab (void *p) |
| | Free UCAB buffer in GSQUEUE, internal use only.
|
| void | gsKit_queue_init (GSGLOBAL *gsGlobal, GSQUEUE *Queue, u8 mode, int size) |
| | Initialize a Draw Queue (Allocates memory for the Queue).
|
| void | gsKit_queue_free (GSGLOBAL *gsGlobal, GSQUEUE *Queue) |
| | Free Allocated Memory for Draw Queue.
|
| void | gsKit_queue_set (GSGLOBAL *gsGlobal, GSQUEUE *Queue) |
| | Set Current Draw Queue.
|
| void | gsKit_mode_switch (GSGLOBAL *gsGlobal, u8 mode) |
| | Set Current Draw Queue (Between GS_ONESHOT and GS_PERSISTENT).
|
| void gsKit_set_clamp |
( |
GSGLOBAL * | gsGlobal, |
|
|
u8 | Preset ) |
Sets the CLAMP Parameters This manipulates the CLAMP struture of gsGlobal according to the Preset value. It then sends the new CLAMP parameters to the GS to put it into effect.
Valid Presets Are:
GS_CMODE_REPEAT - Repeats ("Tiles") Texture Across the Surface.
GS_CMODE_CLAMP - Stretches Texture Across the Surface
GS_CMODE_REGION_REPEAT - Stretches Texture Across the Region Defined by MINU, MAXU, MINV, and MAXV
GS_CMODE_REGION_CLAMP - Repeats a Portion of the Texture Defined by UMSK (MINU), VMSK (MINV), UFIX (MAXU), and VFIX (MAXV)
Definition at line 318 of file gsCore.c.
| void gsKit_set_test |
( |
GSGLOBAL * | gsGlobal, |
|
|
u8 | Preset ) |
Sets the TEST Parameters This manipulates the TEST struture of gsGlobal according to the Preset value. It then sends the new TEST parameters to the GS to put it into effect.
Valid Presets Are:
GS_ZTEST_OFF - Turns off Z Testing
GS_ZTEST_ON - Turns on Z Testing
GS_ATEST_OFF - Turns off Alpha Testing (Source)
GS_ATEST_ON - Turns on Alpha Testing (Source)
GS_D_ATEST_OFF - Turns off Alpha Testing (Destination)
GS_D_ATEST_ON - Turns on Alpha Testing (Destination)
Definition at line 286 of file gsCore.c.