00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef __DISPLAY_H__
00015 #define __DISPLAY_H__
00016
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020
00022 enum PspDisplayPixelFormats {
00024 PSP_DISPLAY_PIXEL_FORMAT_565 = 0,
00026 PSP_DISPLAY_PIXEL_FORMAT_5551,
00027
00028 PSP_DISPLAY_PIXEL_FORMAT_4444,
00029
00030 PSP_DISPLAY_PIXEL_FORMAT_8888
00031 };
00032
00033 enum PspDisplaySetBufSync {
00035 PSP_DISPLAY_SETBUF_IMMEDIATE = 0,
00037 PSP_DISPLAY_SETBUF_NEXTFRAME = 1
00038 };
00039
00053 int sceDisplaySetMode(int mode, int width, int height);
00054
00064 int sceDisplayGetMode(int *pmode, int *pwidth, int *pheight);
00065
00074 void sceDisplaySetFrameBuf(void *topaddr, int bufferwidth, int pixelformat, int sync);
00075
00084 int sceDisplayGetFrameBuf(void **topaddr, int *bufferwidth, int *pixelformat, int *unk1);
00085
00089 unsigned int sceDisplayGetVcount(void);
00090
00094 int sceDisplayWaitVblankStart(void);
00095
00096 #ifdef __cplusplus
00097 }
00098 #endif
00099
00100 #endif