Lua Player Plus Vita
Documentation of lpp-vita
Loading...
Searching...
No Matches
Graphics Class Reference

Public Member Functions

int createImage (int width, int height, int color, MemType type)
 Create an empty image.
 
void debugPrint (number x, number y, string text, int color)
 Print a text on screen using system font.
 
void drawImage (number x, number y, int img, int color)
 Draw an image.
 
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.
 
void drawLine (number x1, number x2, number y1, number y2, int color)
 Draw a line.
 
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.
 
void drawPixel (number x, number y, int color, int image)
 Draw a pixel.
 
void drawRotateImage (number x, number y, int img, number rad, int color)
 Draw a rotated image.
 
void drawScaleImage (number x, number y, int img, number x_scale, number y_scale, int color)
 Draw a scaled image.
 
void fillCircle (number x, number y, number rad, int color)
 Draw a circle.
 
void fillEmptyRect (number x1, number x2, number y1, number y2, int color)
 Draw an empty rectangle.
 
void fillRect (number x1, number x2, number y1, number y2, int color)
 Draw a rectangle.
 
void freeImage (int img)
 Free a loaded image.
 
int getImageFramesNum (int img)
 Gets the number of frames of a loaded animated image.
 
int getImageHeight (int img)
 Get an image height.
 
int getImageWidth (int img)
 Get an image width.
 
int getPixel (int x, int y, int img)
 Get a pixel color from a loaded image.
 
void initBlend (void)
 Initialize drawing phase.
 
void initRescaler (int x, int y, number x_scale, number y_scale)
 Initialize a rescaler.
 
int loadAnimatedImage (string filename)
 Load a .gif animated image.
 
int loadImage (string filename, MemType type)
 Load a .png/.jpg/.bmp image.
 
void loadImageAsync (string filename)
 Load a .png/.jpg/.bmp image (asynchronous).
 
void overloadImage (int image, int offset, int size, string data)
 Copies pixels to a loaded image.
 
void saveImage (int img, string filename, ImgFmt format)
 Save a loaded image to a .png/.bmp image.
 
void setImageFilters (int img, ImageFilter min_filter, ImageFilter mag_filter)
 Set filters to use for a given image.
 
void setImageFrame (int img, int frame)
 Set current active frame for a loaded animated image.
 
void termBlend (void)
 Terminate drawing phase.
 
void termRescaler (void)
 Terminate a rescaler.