graphics2d
[Device proxies]
Detailed Description
The graphics2d proxy provides an interface to the graphics2d.
Classes | |
struct | playerc_graphics2d_t |
Graphics2d device data. More... | |
Functions | |
playerc_graphics2d_t * | playerc_graphics2d_create (playerc_client_t *client, int index) |
Create a graphics2d device proxy. | |
void | playerc_graphics2d_destroy (playerc_graphics2d_t *device) |
Destroy a graphics2d device proxy. | |
int | playerc_graphics2d_subscribe (playerc_graphics2d_t *device, int access) |
Subscribe to the graphics2d device. | |
int | playerc_graphics2d_unsubscribe (playerc_graphics2d_t *device) |
Un-subscribe from the graphics2d device. | |
int | playerc_graphics2d_setcolor (playerc_graphics2d_t *device, player_color_t col) |
Set the current drawing color. | |
int | playerc_graphics2d_draw_points (playerc_graphics2d_t *device, player_point_2d_t pts[], int count) |
Draw some points. | |
int | playerc_graphics2d_draw_polyline (playerc_graphics2d_t *device, player_point_2d_t pts[], int count) |
Draw a polyline that connects an array of points. | |
int | playerc_graphics2d_draw_polygon (playerc_graphics2d_t *device, player_point_2d_t pts[], int count, int filled, player_color_t fill_color) |
Draw a polygon. | |
int | playerc_graphics2d_clear (playerc_graphics2d_t *device) |
Clear the canvas. |