ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <kernel.h>
#include <tamtypes.h>
#include <stdio.h>
#include <gif_tags.h>
#include <gs_gp.h>
#include <gs_psm.h>
#include <dma.h>
#include <dma_tags.h>
#include <draw.h>
#include <graph.h>
#include <packet.h>
Go to the source code of this file.
Functions | |
void | init_gs (framebuffer_t *frame, zbuffer_t *z) |
void | init_drawing_environment (packet_t *packet, framebuffer_t *frame, zbuffer_t *z) |
void | render (packet_t *packet, framebuffer_t *frame) |
int | main (void) |
void init_drawing_environment | ( | packet_t * | packet, |
framebuffer_t * | frame, | ||
zbuffer_t * | z | ||
) |
Definition at line 60 of file graph.c.
References packet_t::data, DMA_CHANNEL_GIF, dma_channel_send_normal(), draw_finish(), draw_setup_environment(), draw_wait_finish(), and packet.
Referenced by main().
void init_gs | ( | framebuffer_t * | frame, |
zbuffer_t * | z | ||
) |
Definition at line 27 of file graph.c.
References framebuffer_t::address, zbuffer_t::address, zbuffer_t::enable, GRAPH_ALIGN_PAGE, graph_initialize(), graph_vram_allocate(), GS_PSM_32, framebuffer_t::height, framebuffer_t::mask, zbuffer_t::mask, framebuffer_t::psm, framebuffer_t::width, and zbuffer_t::zsm.
Referenced by main().
int main | ( | void | ) |
Definition at line 145 of file graph.c.
References framebuffer_t::address, dma_channel_fast_waits(), DMA_CHANNEL_GIF, dma_channel_initialize(), dma_channel_shutdown(), graph_shutdown(), graph_vram_free(), init_drawing_environment(), init_gs(), NULL, packet, packet_free(), packet_init(), PACKET_NORMAL, render(), and SleepThread().
void render | ( | packet_t * | packet, |
framebuffer_t * | frame | ||
) |
Definition at line 83 of file graph.c.
References packet_t::data, DMA_CHANNEL_GIF, dma_channel_send_normal(), dma_wait_fast(), draw_clear(), draw_finish(), draw_wait_finish(), GIF_REG_AD, GIF_REG_PRIM, GIF_REG_RGBAQ, GIF_REG_XYZ2, GIF_SET_PRIM, GIF_SET_RGBAQ, GIF_SET_TAG, GIF_SET_XYZ, graph_wait_vsync(), framebuffer_t::height, PACK_GIFTAG, packet, and framebuffer_t::width.
Referenced by main().