|
| s16 | Mode |
| | Display Mode.
|
| s16 | Interlace |
| | Interlace (On/Off).
|
| s16 | Field |
| | Field / Frame.
|
| u32 | CurrentPointer |
| | Current VRAM Pointer.
|
| u32 | TexturePointer |
| | Pointer to beginning of Texture Buffer.
|
| u8 | Dithering |
| | Dithering (On/Off).
|
| s8 | DitherMatrix [16] |
| | Dithering Matrix.
|
| u8 | DoubleBuffering |
| | Enable/Disable Double Buffering.
|
| u8 | ZBuffering |
| | Enable/Disable Z Buffering.
|
| u32 | ScreenBuffer [2] |
| | Screenbuffer Pointer Array.
|
| u32 | ZBuffer |
| | ZBuffer Pointer.
|
| u8 | EvenOrOdd |
| | Is ((GSREG*)CSR)->FIELD (Used for Interlace Correction).
|
| u8 | DrawOrder |
| | Drawing Order (GS_PER_OS/GS_OS_PER) (GS_PER_OS = Persitant objects always drawn first).
|
| u8 | FirstFrame |
| | Have we executed a frame yet?
|
| u8 | DrawField |
| | Field to draw (GS_FIELD_NORMAL/GS_FIELD_ODD/GS_FIELD_EVEN).
|
| u8 | ActiveBuffer |
| | Active Framebuffer.
|
| volatile u8 | LockBuffer |
| | Used to lock the buffer so it doesn't switch.
|
| int | Width |
| | Framebuffer Width (the mode's DW is a multiple of this value).
|
| int | Height |
| | Framebuffer Height (the mode's DH is a multiple of this value).
|
| int | Aspect |
| | Framebuffer Aspect Ratio (GS_ASPECT_4_3/GS_ASPECT_16_9).
|
| int | OffsetX |
| | X Window Offset.
|
| int | OffsetY |
| | Y Window Offset.
|
| int | StartX |
| | X Starting Coordinate (Used for Placement Correction) Default value.
|
| int | StartY |
| | Y Starting Coordinate (Used for Placement Correction) Default value.
|
| int | StartXOffset |
| | X Starting Coordinate (Used for Placement Correction) Additional correction.
|
| int | StartYOffset |
| | Y Starting Coordinate (Used for Placement Correction) Additional correction.
|
| int | MagH |
| | X Magnification Value (MAGH = DW / Width - 1).
|
| int | MagV |
| | Y Magnification Value (MAGV = DH / Height - 1).
|
| int | DW |
| | Total Display Area Width (DW = Width * (MAGH + 1)).
|
| int | DH |
| | Total Display Area Height (DH = Height * (MAGH + 1)).
|
| GSBGCOLOR * | BGColor |
| | Background Color Structure Pointer.
|
| GSTEST * | Test |
| | TEST Register Value Structure Pointer.
|
| GSCLAMP * | Clamp |
| | CLAMP Register Value Structure Pointer.
|
| GSQUEUE * | CurQueue |
| | Draw Queue (Current).
|
| GSQUEUE * | Per_Queue |
| | Draw Queue (Persistent).
|
| GSQUEUE * | Os_Queue |
| | Draw Queue (Oneshot).
|
| int | Os_AllocSize |
| | Oneshot Drawbuffer Size (Per Buffer).
|
| int | Per_AllocSize |
| | Persistent Drawbuffer Size (Per Buffer).
|
| int | PSM |
| | Pixel Storage Method (Color Mode).
|
| int | PSMZ |
| | ZBuffer Pixel Storage Method.
|
| int | PrimContext |
| | Primitive Context.
|
| int | PrimFogEnable |
| | Primitive Fog Enable.
|
| int | PrimAAEnable |
| | Primitive AntiAlaising Enable.
|
| int | PrimAlphaEnable |
| | Primitive Alpha Blending Enable.
|
| u64 | PrimAlpha |
| | Primitive Alpha Value.
|
| u8 | PABE |
| | Choose if to do Alpha Blend on a Per-Pixel Basis.
|
gsGlobal Structure This is the core structure for gsKit operation.
All relevant data to GS operation including framebuffer pointers, display mode, dimensions, offsets, and GS register values are maintained here.
Most gsKit functions will require the pointer of gsGlobal as their first parameter.
To create a gsGlobal pointer it is recommended you use the gsKit_init_global routine.
Example: GSGLOBAL *gsGlobal = gsKit_init_global(GS_MODE_NTSC);
This will create, allocate, and preload gsGlobal with all default values and specific values for the NTSC display mode.
To destroy a gsGlobal structure you can use the gsKit_deinit_global routine.
Example: gsKit_deinit_global(gsGlobal);
This will free all memory allocated by gsGlobal and memory allocated by structures within gsGlobal itself.
Definition at line 899 of file gsInit.h.