Methods for displaying graphics to the screen. More...
Go to the source code of this file.
Typedefs | |
typedef enum Encoding | Encoding |
Enumerations | |
enum | Encoding { RGB, BGR } |
Functions | |
VF EXPORT_SYM int | graphics_open (int width, int height) |
VF EXPORT_SYM void | graphics_close () |
VF EXPORT_SYM void | graphics_update () |
VF EXPORT_SYM void | graphics_clear () |
VF EXPORT_SYM void | graphics_blit (const unsigned char *data, int x, int y, int width, int height) |
VF 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) |
VF EXPORT_SYM void | graphics_blit_enc (const unsigned char *data, Encoding enc, int x, int y, int width, int height) |
VF 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) |
VF EXPORT_SYM void | graphics_fill (int r, int g, int b) |
VF EXPORT_SYM void | graphics_pixel (int x, int y, int r, int g, int b) |
VF EXPORT_SYM void | graphics_line (int x1, int y1, int x2, int y2, int r, int g, int b) |
VF EXPORT_SYM void | graphics_circle (int cx, int cy, int radius, int r, int g, int b) |
VF EXPORT_SYM void | graphics_circle_fill (int cx, int cy, int radius, int r, int g, int b) |
VF EXPORT_SYM void | graphics_rectangle (int x1, int y1, int x2, int y2, int r, int g, int b) |
VF EXPORT_SYM void | graphics_rectangle_fill (int x1, int y1, int x2, int y2, int r, int g, int b) |
VF EXPORT_SYM void | graphics_triangle (int x1, int y1, int x2, int y2, int x3, int y3, int r, int g, int b) |
VF EXPORT_SYM void | graphics_triangle_fill (int x1, int y1, int x2, int y2, int x3, int y3, int r, int g, int b) |
VF EXPORT_SYM int | get_key_state (enum KeyCode key) |
VF EXPORT_SYM void | get_mouse_position (int *x, int *y) |
VF EXPORT_SYM int | get_mouse_middle_button () |
VF EXPORT_SYM int | get_mouse_left_button () |
VF EXPORT_SYM int | get_mouse_right_button () |
Methods for displaying graphics to the screen.
functions for adding alphameric characters to graphics windows.
These are functions for adding alphameric characters (caps only) to graphics windows. The functions were extracted from a graphing package written by D.Miller Oct 2008. Character generation capabilities were extended from 7-segment to 16-segment and enhanced to include basic punctuation characters, plus size and bold-face options by C.Winton Oct 2008.
enum Encoding |
VF 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
VF 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