Methods for displaying graphics to the screen. More...
Go to the source code of this file.
Typedefs | |
typedef enum Encoding | Encoding |
An enumerate with encoding types RGB and BGR. More... | |
Enumerations | |
enum | Encoding { RGB , BGR } |
An enumerate with encoding types RGB and BGR. More... | |
Functions | |
EXPORT_SYM int | graphics_open (int width, int height) |
EXPORT_SYM void | graphics_close () |
EXPORT_SYM void | graphics_update () |
EXPORT_SYM void | graphics_clear () |
EXPORT_SYM void | graphics_blit (const unsigned char *data, int x, int y, int width, int height) |
EXPORT_SYM void | graphics_blit_region (const unsigned char *data, int sx, int sy, int ex, int ey, int width, int height, int dx, int dy) |
EXPORT_SYM void | graphics_blit_enc (const unsigned char *data, Encoding enc, int x, int y, int width, int height) |
EXPORT_SYM void | graphics_blit_region_enc (const unsigned char *data, Encoding enc, int sx, int sy, int ex, int ey, int width, int height, int dx, int dy) |
EXPORT_SYM void | graphics_fill (int r, int g, int b) |
EXPORT_SYM void | graphics_pixel (int x, int y, int r, int g, int b) |
EXPORT_SYM void | graphics_line (int x1, int y1, int x2, int y2, int r, int g, int b) |
EXPORT_SYM void | graphics_circle (int cx, int cy, int radius, int r, int g, int b) |
EXPORT_SYM void | graphics_circle_fill (int cx, int cy, int radius, int r, int g, int b) |
EXPORT_SYM void | graphics_rectangle (int x1, int y1, int x2, int y2, int r, int g, int b) |
EXPORT_SYM void | graphics_rectangle_fill (int x1, int y1, int x2, int y2, int r, int g, int b) |
EXPORT_SYM void | graphics_triangle (int x1, int y1, int x2, int y2, int x3, int y3, int r, int g, int b) |
EXPORT_SYM void | graphics_triangle_fill (int x1, int y1, int x2, int y2, int x3, int y3, int r, int g, int b) |
EXPORT_SYM int | get_key_state (enum KeyCode key) |
EXPORT_SYM void | get_mouse_position (int *x, int *y) |
EXPORT_SYM int | get_mouse_middle_button () |
EXPORT_SYM int | get_mouse_left_button () |
EXPORT_SYM int | get_mouse_right_button () |
Methods for displaying graphics to the screen.
EXPORT_SYM void graphics_blit | ( | const unsigned char * | data, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
This function is equivalent to calling graphics_blit_enc() with an encoding of RGB
EXPORT_SYM void graphics_blit_region | ( | const unsigned char * | data, |
int | sx, | ||
int | sy, | ||
int | ex, | ||
int | ey, | ||
int | width, | ||
int | height, | ||
int | dx, | ||
int | dy | ||
) |
This function is equivalent to calling graphics_blit_region_enc() with an encoding of RGB