graphics3d
[Interface specifications]


Detailed Description

Three-dimensional graphics interface.

The graphics3d interface provides an interface to graphics devices. Drivers can implement this interface to provide clients and other drivers with graphics output.

The interface uses an openGL style of command where a type is specified along with a series of verticies. The interpretation depends on the command type

Graphics items should be accumulated until an explicit clear command is issued

#define PLAYER_GRAPHICS3D_MAX_POINTS   64
 The maximum number of points that can be described in a packet.
#define PLAYER_GRAPHICS3D_CMD_CLEAR   1
 Command subtype: clear the drawing area (send an empty message).
#define PLAYER_GRAPHICS3D_CMD_DRAW   2
 Command subtype: draw items.
typedef enum player_graphics3d_draw_mode player_graphics3d_draw_mode_t
 Drawmode: enumeration that defines the drawing mode.
typedef player_graphics3d_cmd_draw player_graphics3d_cmd_draw_t
 Command: Draw points (PLAYER_GRAPHICS2D_CMD_POINTS) Draw some points.
enum  player_graphics3d_draw_mode {
  PLAYER_DRAW_POINTS, PLAYER_DRAW_LINES, PLAYER_DRAW_LINE_STRIP, PLAYER_DRAW_LINE_LOOP,
  PLAYER_DRAW_TRIANGLES, PLAYER_DRAW_TRIANGLE_STRIP, PLAYER_DRAW_TRIANGLE_FAN, PLAYER_DRAW_QUADS,
  PLAYER_DRAW_QUAD_STRIP, PLAYER_DRAW_POLYGON
}
 Drawmode: enumeration that defines the drawing mode.

Last updated 12 September 2005 21:38:45