diff options
Diffstat (limited to '')
-rw-r--r-- | include/user/display.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/user/display.h b/include/user/display.h index 58a08d2..3121c94 100644 --- a/include/user/display.h +++ b/include/user/display.h @@ -72,6 +72,11 @@ int sceDisplaySetFrameBuf(const SceDisplayFrameBuf *pParam, SceDisplaySetBufSync int sceDisplayGetFrameBuf(SceDisplayFrameBuf *pParam, SceDisplaySetBufSync sync); /** + * Current display index + */ +int sceDisplayGetDisplay(void); + +/** * Get current number of fps for the current screen mode. * * @param[out] pFps - Pointer to a float variable to store current number of fps. @@ -82,11 +87,28 @@ int sceDisplayGetFrameBuf(SceDisplayFrameBuf *pParam, SceDisplaySetBufSync sync) int sceDisplayGetRefreshRate(float *pFps); /** + * Get current framebuffer dimensions + * + * @param[out] width - Framebuffer width + * @param[out] height - Framebuffer height + * + * @return 0 on success, < 0 on error. +*/ +int sceDisplayGetFrameBufDimensions(int *width, int *height); + +/** * Number of vertical blank pulses up to now */ int sceDisplayGetVcount(void); /** + * Number of vertical blank pulses up to now for a display + * + * @param[in] display - Display index + */ +int sceDisplayGetVcountForDisplay(int display); + +/** * Wait for vertical blank start */ int sceDisplayWaitVblankStart(void); |