ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
Go to the source code of this file.
Macros | |
#define | SPR_BEGIN 0x70000000 |
Functions | |
packet_t * | packet_init (int qwords, int type) |
void | packet_free (packet_t *packet) |
void | packet_reset (packet_t *packet) |
void packet_free | ( | packet_t * | packet | ) |
Free the space allocated by packet.
Definition at line 63 of file packet.c.
References packet_t::data, NULL, packet, PACKET_SPR, PACKET_UCAB, and packet_t::type.
Referenced by draw_init_env(), init_drawing_environment(), init_texture(), load_texture(), main(), render(), and setup_texture().
packet_t* packet_init | ( | int | qwords, |
int | type | ||
) |
Allocate a new packet for use, size in quadwords.
Definition at line 8 of file packet.c.
References packet_t::data, NULL, packet, PACKET_SPR, PACKET_UCAB, packet_t::qwc, packet_t::qwords, SPR_BEGIN, and packet_t::type.
Referenced by draw_init_env(), init_drawing_environment(), init_texture(), InitCB(), load_texture(), main(), render(), run_demo(), and setup_texture().
void packet_reset | ( | packet_t * | packet | ) |
Reset the packet quadword counter and zero out data.
Definition at line 89 of file packet.c.
References packet_t::data, packet, PACKET_SPR, packet_t::qwc, packet_t::qwords, SPR_BEGIN, and packet_t::type.