PSPSDK 2024-10-31
|
Go to the source code of this file.
Enumerations | |
enum | PspDisplayPixelFormats { PSP_DISPLAY_PIXEL_FORMAT_565 = 0 , PSP_DISPLAY_PIXEL_FORMAT_5551 , PSP_DISPLAY_PIXEL_FORMAT_4444 , PSP_DISPLAY_PIXEL_FORMAT_8888 } |
Framebuffer pixel formats. More... | |
enum | PspDisplaySetBufSync { PSP_DISPLAY_SETBUF_IMMEDIATE = 0 , PSP_DISPLAY_SETBUF_NEXTFRAME = 1 } |
enum | PspDisplayErrorCodes { SCE_DISPLAY_ERROR_OK = 0 , SCE_DISPLAY_ERROR_POINTER = 0x80000103 , SCE_DISPLAY_ERROR_ARGUMENT = 0x80000107 } |
Functions | |
int | sceDisplaySetMode (int mode, int width, int height) |
Set display mode. | |
int | sceDisplayGetMode (int *pmode, int *pwidth, int *pheight) |
Get display mode. | |
int | sceDisplaySetFrameBuf (void *topaddr, int bufferwidth, int pixelformat, int sync) |
Display set framebuf. | |
int | sceDisplayGetFrameBuf (void **topaddr, int *bufferwidth, int *pixelformat, int sync) |
Get Display Framebuffer information. | |
unsigned int | sceDisplayGetVcount (void) |
Number of vertical blank pulses up to now. | |
int | sceDisplayWaitVblankStart (void) |
Wait for vertical blank start. | |
int | sceDisplayWaitVblankStartCB (void) |
Wait for vertical blank start with callback. | |
int | sceDisplayWaitVblank (void) |
Wait for vertical blank. | |
int | sceDisplayWaitVblankCB (void) |
Wait for vertical blank with callback. | |
int | sceDisplayGetAccumulatedHcount (void) |
Get accumlated HSYNC count. | |
int | sceDisplayGetCurrentHcount (void) |
Get current HSYNC count. | |
float | sceDisplayGetFramePerSec (void) |
Get number of frames per second. | |
int | sceDisplayIsForeground (void) |
Get whether or not frame buffer is being displayed. | |
int | sceDisplayIsVblank (void) |
Test whether VBLANK is active. | |
Get Display Framebuffer information.
topaddr | - pointer to void* to receive address of start of framebuffer |
bufferwidth | - pointer to int to receive buffer width (must be power of 2) |
pixelformat | - pointer to int to receive one of PspDisplayPixelFormats. |
sync | - One of PspDisplaySetBufSync |
Get display mode.
pmode | - Pointer to an integer to receive the current mode. |
pwidth | - Pointer to an integer to receive the current width. |
pheight | - Pointer to an integer to receive the current height, |
Display set framebuf.
topaddr | - address of start of framebuffer |
bufferwidth | - buffer width (must be power of 2) |
pixelformat | - One of PspDisplayPixelFormats. |
sync | - One of PspDisplaySetBufSync |
Referenced by sceGuDispBuffer(), sceGuDisplay(), and sceGuSwapBuffers().
Set display mode.
mode | - Display mode, normally 0. |
width | - Width of screen in pixels. |
height | - Height of screen in pixels. |
Referenced by sceGuDispBuffer().
Wait for vertical blank start.
Referenced by pspDebugDumpException().