PlayerCc::Graphics2dProxy Class Reference

#include <playerc++.h>

Inheritance diagram for PlayerCc::Graphics2dProxy:

Inheritance graph
Collaboration diagram for PlayerCc::Graphics2dProxy:

Collaboration graph
List of all members.

Detailed Description

The Graphics2dProxy class is used to draw simple graphics into a rendering device provided by Player using the graphics2d interface.

For example, the Stage plugin implements this interface so you can draw into the Stage window. This is very useful to visualize what's going on in your controller.

Definition at line 723 of file playerc++.h.

Public Member Functions

 Graphics2dProxy (PlayerClient *aPc, uint32_t aIndex=0)
void Color (player_color_t col)
 Set the current pen color.
void Color (uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha)
 Set the current pen color.
void Clear (void)
 Clear the drawing area.
void DrawPoints (player_point_2d_t pts[], int count)
 Draw a set of points.
void DrawPolygon (player_point_2d_t pts[], int count, bool filled, player_color_t fill_color)
 Draw a polygon defined by a set of points.
void DrawPolyline (player_point_2d_t pts[], int count)
 Draw a line connecting set of points.

Private Member Functions

void Subscribe (uint32_t aIndex)
void Unsubscribe ()

Private Attributes


The documentation for this class was generated from the following file:

Last updated 12 September 2005 21:38:45