Things like the resolution, video mode, width and height of drawing area, pixel ration, and other general parameters are stored in the ps2_gs_gparam structure. Next a pointer to a ps2_gs_gparam structure is declared. For the curious, it is named g_fd_gs because in the future it is used as a file descriptor. For this program we will only be using it to verify that the GS is open and ready for us to program. First off, you must include the ps2gs header file in order to program the GS. #include //header file containing GS commands int g_fd_gs //used to check if GS is opened ps2_gs_gparam *g_gp //structure that keeps GS parameters ps2_gs_dbuff g_db //structure for double buffering ps2_gs_finish g_finish //structure to wait until drawing is done int acquire() //functions used to acquire and release int release() //the GS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |