#include <stdio.h>
#include <assert.h>
#include "libps2.h"
Include dependency graph for graphic.c:
Go to the source code of this file.
Defines | |
#define | PROJECTION 512.0f |
#define | ASPECT_X 1.0f |
#define | ZMIN 1.0f |
#define | NEARZ 1.0f |
#define | FARZ 65536.0f |
Functions | |
int | release (void) |
Release PS2 graphic devices. | |
int | acquire (void) |
Init. PS2 devices. | |
void | usage (const char *msg1, const char *msg2, const char *g_program_name) |
Print usage. | |
void | options (int argc, char *argv[], char **file_name) |
Set option to graphic system. | |
void | init_vpu (char *elf) |
Init. VPU0/1 devices. | |
void | close_vpu () |
Free VPU0/1 devices. | |
void | init_graphic () |
Initialize libps2a graphic system. | |
void | close_graphic () |
Finish libps2a graphic system. | |
void | start_display () |
Pre-CG viewing. | |
void | swap_dbuff () |
Swap double buffer. | |
void | wait_sync () |
Wait V-blank. | |
ps2_gsreg_frame * | ask_gsreg_frame () |
return frame buffer base point at that time. | |
Variables | |
int | g_textop64 |
int | g_zbits |
char * | log_file = "messages" |
ps2_vpu * | g_vpu0 |
ps2_vpu * | g_vpu1 |
FMATRIX | view_screen |
VPUFILE * | vfd |
FILE * | err_fp |
ps2_gs_gparam * | gp |
int | g_fd_gs |
int | g_inter |
int | g_out_mode |
int | g_ff_mode |
int | g_resolution |
int | g_refresh_rate |
int | g_psm |
int | g_zpsm |
int | frame |
int | odev |
ps2_gs_dbuff | g_db |
ps2_gs_finish | g_finish |
Graphic system is a View model. In other words, it is a output system. This graphic system supplys several CG drawing methods, so we are able to name it `CG-view model'. Possibly, if a sound system is implemented, we name it `Sound-view model' or `Audio-view model'.
Then, this code is to implement Graphic system module by using PS2 Graphic Synthesizer, we call it `GS'.
Definition in file graphic.c.