17extern uint32_t TPX_RSP_ID;
21 TPX_CMD_SYNC_T3D = 0x0,
22 TPX_CMD_DRAW_COLOR = 0x1,
23 TPX_CMD_MATRIX_STACK = 0x2,
24 TPX_CMD_SET_DMEM = 0x3,
25 TPX_CMD_DRAW_TEXTURE = 0x4,
54_Static_assert(sizeof(TPXParticle) == 16, "TPXParticle size mismatch");
169 return (idx & 1) ? pt[idx/2].posB : pt[idx/2].posA;
178 return (idx & 1) ? &pt[idx/2].sizeB : &pt[idx/2].sizeA;
187 return (idx & 1) ? (uint32_t*)&pt[idx/2].colorB : (uint32_t*)&pt[idx/2].colorA;
196 return (idx & 1) ? pt[idx/2].colorB : pt[idx/2].colorA;
__attribute__((deprecated)) void t3d_debug_print_init()
Initializes the debug print system, make sure to have 'font.ia4.png' in your FS.
void tpx_state_set_base_size(uint16_t baseSize)
Definition tpx.c:68
void tpx_init(TPXInitParams params)
Initializes the tinyPX library.
Definition tpx.c:20
void tpx_state_set_tex_params(int16_t offsetX, uint16_t mirrorPoint)
Definition tpx.c:72
void tpx_destroy()
Definition tpx.c:152
static uint8_t * tpx_buffer_get_rgba(TPXParticle pt[], int idx)
Definition tpx.h:195
void tpx_matrix_push_pos(int count)
Definition tpx.c:125
static int8_t * tpx_buffer_get_size(TPXParticle pt[], int idx)
Definition tpx.h:177
void tpx_matrix_set(const T3DMat4FP *mat, bool doMultiply)
Definition tpx.c:112
static int8_t * tpx_buffer_get_pos(TPXParticle pt[], int idx)
Definition tpx.h:168
void tpx_matrix_pop(int count)
Definition tpx.c:120
void tpx_matrix_push(const T3DMat4FP *mat)
Definition tpx.c:116
void tpx_state_from_t3d()
Definition tpx.c:47
void tpx_buffer_copy(TPXParticle pt[], uint32_t idxDst, uint32_t idxSrc)
static uint32_t * tpx_buffer_get_color(TPXParticle pt[], int idx)
Definition tpx.h:186
void tpx_particle_draw_tex(TPXParticle *particles, uint32_t count)
Definition tpx.c:100
void tpx_state_set_scale(float scaleX, float scaleY)
Definition tpx.c:62
void tpx_buffer_swap(TPXParticle pt[], uint32_t idxA, uint32_t idxB)
Definition tpx.c:130
void tpx_particle_draw(TPXParticle *particles, uint32_t count)
Definition tpx.c:96