vitasdk
Documentation of the vitasdk

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceDisplay_stub



Functions

int sceDisplaySetFrameBuf (const SceDisplayFrameBuf *pParam, SceDisplaySetBufSync sync)
 Set/Update framebuffer parameters. More...
 
int sceDisplayGetFrameBuf (SceDisplayFrameBuf *pParam, SceDisplaySetBufSync sync)
 Get current framebuffer parameters. More...
 
int sceDisplayGetPrimaryHead (void)
 Primary display index. More...
 
int sceDisplayGetRefreshRate (float *pFps)
 Get current number of fps for the current screen mode. More...
 
int sceDisplayGetMaximumFrameBufResolution (int *width, int *height)
 Get maximum framebuffer resolution. More...
 
int sceDisplayGetVcount (void)
 Number of vertical blank pulses up to now. More...
 
int sceDisplayGetVcountInternal (int display)
 Number of vertical blank pulses up to now for a display. More...
 
int sceDisplayWaitVblankStart (void)
 Wait for vertical blank start. More...
 
int sceDisplayWaitVblankStartCB (void)
 Wait for vertical blank start with callback. More...
 
int sceDisplayWaitVblankStartMulti (unsigned int vcount)
 Wait for vertical blank start after specified number of vertical periods. More...
 
int sceDisplayWaitVblankStartMultiCB (unsigned int vcount)
 Wait for vertical blank start with callback after specified number of vertical periods. More...
 
int sceDisplayWaitSetFrameBuf (void)
 Wait for vertical blank start since last update of framebuffer. More...
 
int sceDisplayWaitSetFrameBufCB (void)
 Wait for vertical blank start with callback since last update of framebuffer. More...
 
int sceDisplayWaitSetFrameBufMulti (unsigned int vcount)
 Wait for vertical blank start after specified number of vertical periods since last update of framebuffer. More...
 
int sceDisplayWaitSetFrameBufMultiCB (unsigned int vcount)
 Wait for vertical blank start with callback after specified number of vertical periods since last update of framebuffer. More...
 
int sceDisplayRegisterVblankStartCallback (SceUID uid)
 Register callback to be used at each vertical blank start. More...
 
int sceDisplayUnregisterVblankStartCallback (SceUID uid)
 Unregister callback used at each vertical blank start. More...
 

Function Documentation

◆ sceDisplaySetFrameBuf()

int sceDisplaySetFrameBuf ( const SceDisplayFrameBuf pParam,
SceDisplaySetBufSync  sync 
)

Set/Update framebuffer parameters.

Parameters
[in]pParam- Pointer to a SceDisplayFrameBuf structure.
[in]sync- One of SceDisplaySetBufSync
Returns
0 on success, < 0 on error.
Note
- If NULL is provided as pParam pointer, output is blacked out.

◆ sceDisplayGetFrameBuf()

int sceDisplayGetFrameBuf ( SceDisplayFrameBuf pParam,
SceDisplaySetBufSync  sync 
)

Get current framebuffer parameters.

Parameters
[out]pParam- Pointer to a SceDisplayFrameBuf structure which will receive framebuffer parameters.
[in]sync- One of SceDisplaySetBufSync
Returns
0 on success, < 0 on error.

◆ sceDisplayGetPrimaryHead()

int sceDisplayGetPrimaryHead ( void  )

Primary display index.

◆ sceDisplayGetRefreshRate()

int sceDisplayGetRefreshRate ( float *  pFps)

Get current number of fps for the current screen mode.

Parameters
[out]pFps- Pointer to a float variable to store current number of fps.
Returns
0 on success, < 0 on error.
Note
- This function returns a theoretical value, this might not be the exact frame rate.

◆ sceDisplayGetMaximumFrameBufResolution()

int sceDisplayGetMaximumFrameBufResolution ( int *  width,
int *  height 
)

Get maximum framebuffer resolution.

Parameters
[out]width- Maximum width
[out]height- Maximum height
Returns
0 on success, < 0 on error.

◆ sceDisplayGetVcount()

int sceDisplayGetVcount ( void  )

Number of vertical blank pulses up to now.

◆ sceDisplayGetVcountInternal()

int sceDisplayGetVcountInternal ( int  display)

Number of vertical blank pulses up to now for a display.

Parameters
[in]display- Display index

◆ sceDisplayWaitVblankStart()

int sceDisplayWaitVblankStart ( void  )

Wait for vertical blank start.

◆ sceDisplayWaitVblankStartCB()

int sceDisplayWaitVblankStartCB ( void  )

Wait for vertical blank start with callback.

◆ sceDisplayWaitVblankStartMulti()

int sceDisplayWaitVblankStartMulti ( unsigned int  vcount)

Wait for vertical blank start after specified number of vertical periods.

Parameters
[in]vcount- Number of vertical periods before waiting for vertical blank start

◆ sceDisplayWaitVblankStartMultiCB()

int sceDisplayWaitVblankStartMultiCB ( unsigned int  vcount)

Wait for vertical blank start with callback after specified number of vertical periods.

Parameters
[in]vcount- Number of vertical periods before waiting for vertical blank start

◆ sceDisplayWaitSetFrameBuf()

int sceDisplayWaitSetFrameBuf ( void  )

Wait for vertical blank start since last update of framebuffer.

◆ sceDisplayWaitSetFrameBufCB()

int sceDisplayWaitSetFrameBufCB ( void  )

Wait for vertical blank start with callback since last update of framebuffer.

◆ sceDisplayWaitSetFrameBufMulti()

int sceDisplayWaitSetFrameBufMulti ( unsigned int  vcount)

Wait for vertical blank start after specified number of vertical periods since last update of framebuffer.

Parameters
[in]vcount- Number of vertical periods before waiting for vertical blank start

◆ sceDisplayWaitSetFrameBufMultiCB()

int sceDisplayWaitSetFrameBufMultiCB ( unsigned int  vcount)

Wait for vertical blank start with callback after specified number of vertical periods since last update of framebuffer.

Parameters
[in]vcount- Number of vertical periods before waiting for vertical blank start

◆ sceDisplayRegisterVblankStartCallback()

int sceDisplayRegisterVblankStartCallback ( SceUID  uid)

Register callback to be used at each vertical blank start.

Parameters
[in]uid- Callback UID

◆ sceDisplayUnregisterVblankStartCallback()

int sceDisplayUnregisterVblankStartCallback ( SceUID  uid)

Unregister callback used at each vertical blank start.

Parameters
[in]uid- Callback UID