graphics2d

Two-dimensional graphics interface. More...


Detailed Description

Two-dimensional graphics interface.

The graphics2d interface provides an interface to graphics devices. Drivers can implement this interface to provide clients and other drivers with graphics output. For example, Stage models present this interface to allow clients to draw in the Stage window.

#define PLAYER_GRAPHICS2D_CMD_CLEAR   1
 Command subtype: clear the drawing area (send an empty message)
#define PLAYER_GRAPHICS2D_CMD_POINTS   2
 Command subtype: draw points.
#define PLAYER_GRAPHICS2D_CMD_POLYLINE   3
 Command subtype: draw a polyline.
#define PLAYER_GRAPHICS2D_CMD_POLYGON   4
 Command subtype: draw a polygon.
#define PLAYER_GRAPHICS2D_CMD_MULTILINE   5
 Command subtype: draw a set of lines.
typedef struct
player_graphics2d_cmd_points 
player_graphics2d_cmd_points_t
 Data: This interface produces no data.
typedef struct
player_graphics2d_cmd_polyline 
player_graphics2d_cmd_polyline_t
 Command: Draw polyline (PLAYER_GRAPHICS2D_CMD_POLYLINE) Draw a series of straight line segments between a set of points.
typedef struct
player_graphics2d_cmd_polygon 
player_graphics2d_cmd_polygon_t
 Command: Draw polygon (PLAYER_GRAPHICS2D_CMD_POLYGON) Draw a polygon.
typedef struct
player_graphics2d_cmd_multiline 
player_graphics2d_cmd_multiline_t
 Command: Draw multiple lines (PLAYER_GRAPHICS2D_CMD_MULTILINE) Draw a set of lines.

Typedef Documentation

Command: Draw multiple lines (PLAYER_GRAPHICS2D_CMD_MULTILINE) Draw a set of lines.

End points of lines are at points[2n] and points[2n+1] where 2n+1<count

Data: This interface produces no data.

Requests: This interface accepts no requests. Command: Draw points (PLAYER_GRAPHICS2D_CMD_POINTS) Draw some points.