ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <dma.h>
#include <stdio.h>
#include <string.h>
#include <tamtypes.h>
#include <packet.h>
#include <graph.h>
#include <gs_psm.h>
#include <draw.h>
#include <kernel.h>
#include <font.h>
Go to the source code of this file.
Functions | |
void | draw_init_env () |
void | init_texture () |
void | run_demo (packet_t *packet) |
int | main (void) |
Variables | |
unsigned int | image_clut32 [] |
unsigned char | image_pixel [] |
int | myaddress = 0 |
int | clutaddress = 0 |
fsfont_t | impress |
fontx_t | krom_u |
fontx_t | krom_k |
packet_t | packet |
void draw_init_env | ( | ) |
Definition at line 26 of file font.c.
References framebuffer_t::address, zbuffer_t::address, packet_t::data, DMA_CHANNEL_GIF, dma_channel_send_normal(), dma_wait_fast(), draw_finish(), draw_setup_environment(), zbuffer_t::enable, GRAPH_ALIGN_PAGE, graph_initialize(), graph_vram_allocate(), GS_PSM_32, framebuffer_t::height, framebuffer_t::mask, zbuffer_t::mask, zbuffer_t::method, packet, packet_free(), packet_init(), PACKET_NORMAL, framebuffer_t::psm, framebuffer_t::width, zbuffer_t::zsm, and ZTEST_METHOD_GREATER.
Referenced by main().
void init_texture | ( | ) |
Definition at line 61 of file font.c.
References clutaddress, packet_t::data, DMA_CHANNEL_GIF, dma_channel_send_chain(), dma_wait_fast(), draw_texture_flush(), draw_texture_transfer(), GRAPH_ALIGN_BLOCK, graph_vram_allocate(), GS_PSM_32, GS_PSM_4, image_clut32, image_pixel, myaddress, packet, packet_free(), packet_init(), and PACKET_NORMAL.
Referenced by main().
int main | ( | void | ) |
Definition at line 185 of file font.c.
References dma_channel_fast_waits(), DMA_CHANNEL_GIF, dma_channel_initialize(), DOUBLE_BYTE, draw_init_env(), fontstudio_load_ini(), fontstudio_parse_ini(), fontstudio_unload_ini(), fontx_load(), fontx_unload(), impress, init_texture(), krom_k, krom_u, NULL, packet, run_demo(), SINGLE_BYTE, and SleepThread().
void run_demo | ( | packet_t * | packet | ) |
Definition at line 83 of file font.c.
References color_t::a, texbuffer_t::address, clutbuffer_t::address, color_t::b, lod_t::calculation, CENTER_ALIGN, clut, CLUT_LOAD, CLUT_STORAGE_MODE1, clutaddress, texinfo_t::components, context, packet_t::data, DMA_CHANNEL_GIF, dma_channel_send_normal(), dma_wait_fast(), draw_clear(), draw_finish(), draw_log2(), draw_texture_sampling(), draw_texturebuffer(), draw_wait_finish(), fontstudio_print_string(), fontx_print_sjis(), texinfo_t::function, color_t::g, graph_wait_vsync(), GS_PSM_32, GS_PSM_4, texinfo_t::height, impress, texbuffer_t::info, lod_t::k, krom_k, krom_u, lod_t::l, clutbuffer_t::load_method, lod, LOD_MAG_LINEAR, LOD_MIN_LINEAR, LOD_USE_K, lod_t::mag_filter, lod_t::max_level, lod_t::min_filter, myaddress, packet, packet_init(), PACKET_NORMAL, packets, texbuffer_t::psm, clutbuffer_t::psm, color_t::q, color_t::r, fsfont_t::scale, clutbuffer_t::start, clutbuffer_t::storage_mode, TEXTURE_COMPONENTS_RGBA, TEXTURE_FUNCTION_MODULATE, v0, texinfo_t::width, and texbuffer_t::width.
Referenced by main().
int clutaddress = 0 |
Definition at line 19 of file font.c.
Referenced by init_texture(), and run_demo().
|
extern |
Definition at line 11 of file impress.c.
Referenced by init_texture().
|
extern |
Definition at line 31 of file impress.c.
Referenced by init_texture().
fsfont_t impress |
Definition at line 21 of file font.c.
Referenced by main(), and run_demo().
fontx_t krom_k |
Definition at line 23 of file font.c.
Referenced by main(), and run_demo().
fontx_t krom_u |
Definition at line 22 of file font.c.
Referenced by main(), and run_demo().
int myaddress = 0 |
Definition at line 18 of file font.c.
Referenced by init_texture(), and run_demo().
packet_t packet |
Definition at line 24 of file font.c.
Referenced by ClearBufferLen(), draw_init_env(), EnQRxPacket(), fileXioChdir(), fileXioChStat(), fileXioClose(), fileXioCopyfile(), fileXioDclose(), fileXioDevctl(), fileXioDopen(), fileXioDread(), fileXioFormat(), fileXioGetDeviceList(), fileXioGetdir(), fileXioGetStat(), fileXioIoctl(), fileXioIoctl2(), fileXioLseek(), fileXioLseek64(), fileXioMkdir(), fileXioMount(), fileXioOpen(), fileXioRead(), fileXioReadlink(), fileXioRemove(), fileXioRename(), fileXioRmdir(), fileXioSetRWBufferSize(), fileXioSymlink(), fileXioSync(), fileXioUmount(), fileXioWrite(), FreeRxPacket(), GsGifPacketsAlloc(), GsGifPacketsExecute(), init_drawing_environment(), init_texture(), load_texture(), main(), NETMAN_RxThread(), NetManNetProtStackEnQRxPacket(), NetManNetProtStackFreeRxPacket(), NetManNetProtStackReallocRxPacket(), NetManRPCAllocRxBuffers(), packet_free(), packet_get_qword(), packet_init(), packet_reset(), ReallocRxPacket(), render(), run_demo(), and setup_texture().