Lua Player Plus Vita
Documentation of lpp-vita
Screen

Module that handles basic screen related stuffs. More...

Functions

void Screen::clear (int clr)
 Clear the screen framebuffer. More...
 
void Screen::flip (void)
 Flip the screen. More...
 
int Screen::getPixel (int x, int y)
 Get a pixel color from the screen framebuffer. More...
 
void Screen::waitVblankStart (void)
 Wait screen vertical synchronization (VSync). More...
 

Detailed Description

Module that handles basic screen related stuffs.

Function Documentation

◆ clear()

void Screen::clear ( int  clr)

Clear the screen framebuffer.

Usage example:
Definition: luaScreen.cpp:6
void clear(int clr)
Clear the screen framebuffer.
Parameters
clr- Color of the screen after the clear (optional).
Note
If clr is passed, that color will be used for successive calls too.
This function must be called during rendering phase (See Graphics).

◆ flip()

void Screen::flip ( void  )

Flip the screen.

Usage example:
void flip(void)
Flip the screen.

◆ getPixel()

int Screen::getPixel ( int  x,
int  y 
)

Get a pixel color from the screen framebuffer.

Usage example:
pixel_color = Screen.getPixel(5, 25)
int getPixel(int x, int y)
Get a pixel color from the screen framebuffer.
Parameters
x- X coordinate of the pixel.
y- Y coordinate of the pixel.
Returns
The pixel color value (See Color).

◆ waitVblankStart()

void Screen::waitVblankStart ( void  )

Wait screen vertical synchronization (VSync).

Usage example:
void waitVblankStart(void)
Wait screen vertical synchronization (VSync).