![]() |
Lua Player Plus Vita
Documentation of lpp-vita
|
Public Member Functions | |
void | initBlend (void) |
Initialize drawing phase. More... | |
void | termBlend (void) |
Terminate drawing phase. More... | |
void | debugPrint (number x, number y, string text, int color) |
Print a text on screen using system font. More... | |
void | drawPixel (number x, number y, int color, int image) |
Draw a pixel. More... | |
int | getPixel (int x, int y, int img) |
Get a pixel color from a loaded image. More... | |
void | drawLine (number x1, number x2, number y1, number y2, int color) |
Draw a line. More... | |
void | fillRect (number x1, number x2, number y1, number y2, int color) |
Draw a rectangle. More... | |
void | fillEmptyRect (number x1, number x2, number y1, number y2, int color) |
Draw an empty rectangle. More... | |
void | fillCircle (number x, number y, number rad, int color) |
Draw a circle. More... | |
int | createImage (int width, int height, int color) |
Create an empty image. More... | |
int | loadImage (string filename) |
Load a .png/.jpg/.bmp image. More... | |
void | saveImage (int img, string filename, ImgFmt format) |
Save a loaded image to a .png/.bmp image. More... | |
void | loadImageAsync (string filename) |
Load a .png/.jpg/.bmp image (asynchronous). More... | |
int | loadAnimatedImage (string filename) |
Load a .gif animated image. More... | |
int | getImageFramesNum (int img) |
Gets the number of frames of a loaded animated image. More... | |
void | setImageFrame (int img, int frame) |
Set current active frame for a loaded animated image. More... | |
void | freeImage (int img) |
Free a loaded image. More... | |
void | setImageFilters (int img, ImageFilter min_filter, ImageFilter mag_filter) |
Set filters to use for a given image. More... | |
int | getImageWidth (int img) |
Get an image width. More... | |
int | getImageHeight (int img) |
Get an image height. More... | |
void | drawImage (number x, number y, int img, int color) |
Draw an image. More... | |
void | drawRotateImage (number x, number y, int img, number rad, int color) |
Draw a rotated image. More... | |
void | drawScaleImage (number x, number y, int img, number x_scale, number y_scale, int color) |
Draw a scaled image. More... | |
void | drawPartialImage (number x, number y, int img, int x_start, int y_start, number width, number height, int color) |
Draw a part of an image. More... | |
void | drawImageExtended (number x, number y, int img, int x_start, int y_start, number width, number height, number rad, number x_scale, number y_scale, int color) |
Draw an image with several effects. More... | |
void | initRescaler (int x, int y, number x_scale, number y_scale) |
Initialize a rescaler. More... | |
void | termRescaler (void) |
Terminate a rescaler. More... | |