mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-01 00:13:05 -04:00
4df8ccc871
* Reorganize files into libs/{dolphin,JSystem,PowerPC_EABI_Support,revolution,TRK_MINNOW_DOLPHIN}
* Update configure.py and project.py for new libs structure
* Refactor `#include <dolphin/x.h>` -> `<x.h>`
* Remove `__REVOLUTION_SDK__` forwards from dolphin
* Fix dolphin/ references in revolution
* Wrap `#include <dolphin.h>` in `!__REVOLUTION_SDK__`
* Always build TRK against dolphin headers
* Resolve revolution SDK header resolution issues
38 lines
970 B
C
38 lines
970 B
C
#ifndef _DOLPHIN_GX_GXCOMMANDLIST_H_
|
|
#define _DOLPHIN_GX_GXCOMMANDLIST_H_
|
|
|
|
#include <dolphin/types.h>
|
|
|
|
#define GX_NOP 0x00
|
|
#define GX_LOAD_CP_REG 0x08
|
|
#define GX_LOAD_XF_REG 0x10
|
|
#define GX_LOAD_INDX_A 0x20
|
|
#define GX_LOAD_INDX_B 0x28
|
|
#define GX_LOAD_INDX_C 0x30
|
|
#define GX_LOAD_INDX_D 0x38
|
|
#define GX_LOAD_BP_REG 0x61
|
|
|
|
#define GX_DRAW_QUADS 0x80
|
|
#define GX_DRAW_TRIANGLES 0x90
|
|
#define GX_DRAW_TRIANGLE_STRIP 0x98
|
|
#define GX_DRAW_TRIANGLE_FAN 0xA0
|
|
#define GX_DRAW_LINES 0xA8
|
|
#define GX_DRAW_LINE_STRIP 0xB0
|
|
#define GX_DRAW_POINTS 0xB8
|
|
|
|
#define GX_CMD_CALL_DL 0x40
|
|
#define GX_CMD_INVAL_VTX 0x48
|
|
|
|
#define GX_OPCODE_MASK 0xF8
|
|
#define GX_VAT_MASK 0x07
|
|
|
|
extern u8 GXTexMode0Ids[8];
|
|
extern u8 GXTexMode1Ids[8];
|
|
extern u8 GXTexImage0Ids[8];
|
|
extern u8 GXTexImage1Ids[8];
|
|
extern u8 GXTexImage2Ids[8];
|
|
extern u8 GXTexImage3Ids[8];
|
|
extern u8 GXTexTlutIds[8];
|
|
|
|
#endif
|