graphics3d

Three-dimensional graphics interface. More...

#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.
#define PLAYER_GRAPHICS3D_CMD_TRANSLATE   3
 Command subtype: translate coordinate system.
#define PLAYER_GRAPHICS3D_CMD_ROTATE   4
 Command subtype: rotate coordinate system.
#define PLAYER_GRAPHICS3D_CMD_PUSH   5
 Command subtype: push current coordinate system onto stack.
#define PLAYER_GRAPHICS3D_CMD_POP   6
 Command subtype: pop coordinate system from stack to become current.
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.
typedef enum
player_graphics3d_draw_mode 
player_graphics3d_draw_mode_t
 Drawmode: enumeration that defines the drawing mode.
typedef struct
player_graphics3d_cmd_draw 
player_graphics3d_cmd_draw_t
 Data: This interface produces no data.
typedef struct
player_graphics3d_cmd_translate 
player_graphics3d_cmd_translate_t
 Command: Translate coordinate system (PLAYER_GRAPHICS3D_CMD_TRANSLATE) Translate the current coordinate system.
typedef struct
player_graphics3d_cmd_rotate 
player_graphics3d_cmd_rotate_t
 Command: Rotate coordinate system (PLAYER_GRAPHICS3D_CMD_ROTATE) Rotate the current coordinate system by a given angle around the given vector.

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


Typedef Documentation

Data: This interface produces no data.

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


Last updated 25 May 2011 21:17:00