Update of /cvsroot/playerstage/code/player/libplayercore
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4552/libplayercore

Modified Files:
      Tag: release-2-0-patches
        player.h 
Log Message:
backported lots of stuff from HEAD

Index: player.h
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayercore/player.h,v
retrieving revision 1.92.2.1
retrieving revision 1.92.2.2
diff -C2 -d -r1.92.2.1 -r1.92.2.2
*** player.h    31 May 2006 22:21:18 -0000      1.92.2.1
--- player.h    7 Jun 2006 16:12:38 -0000       1.92.2.2
***************
*** 157,160 ****
--- 157,161 ----
  #define PLAYER_RFID_CODE           56  // RFID reader interface
  #define PLAYER_WSN_CODE            57  // Wireless Sensor Networks interface
+ #define PLAYER_GRAPHICS3D_CODE     58  // Graphics3D interface
  /** @} */
  
***************
*** 212,215 ****
--- 213,217 ----
  #define PLAYER_WIFI_STRING            "wifi"
  #define PLAYER_GRAPHICS2D_STRING       "graphics2d"
+ #define PLAYER_GRAPHICS3D_STRING       "graphics3d"
  #define PLAYER_WSN_STRING             "wsn"
  /** @} */
***************
*** 358,361 ****
--- 360,369 ----
  } player_color_t;
  
+ /** @brief A boolean variable, 0 for false anything else for true */
+ typedef struct player_bool
+ {
+   /** state */
+   uint8_t state;
+ } player_bool_t;
  
  /** @} */
***************
*** 1586,1590 ****
--- 1594,1662 ----
  /** @} */
  
+ ////////////////////////////////////////////////////////////////////////////
+ /** @ingroup interfaces
+  * @defgroup interface_graphics3d graphics3d
+  * @brief Three-dimensional graphics interface
+ 
+ The @p 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
+ */
+ 
+ /** @ingroup interface_graphics3d
+  * @{ */
+ 
+ /** The maximum number of points that can be described in a packet. */
+ #define PLAYER_GRAPHICS3D_MAX_POINTS 64
+ 
+ /** Command subtype: clear the drawing area (send an empty message) */
+ #define PLAYER_GRAPHICS3D_CMD_CLEAR 1
+ /** Command subtype: draw items */
+ #define PLAYER_GRAPHICS3D_CMD_DRAW 2
+ 
+ 
+ /** Drawmode: enumeration that defines the drawing mode */
+ typedef 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
+ } player_graphics3d_draw_mode_t;
+ 
+ 
+ /** @brief Data: This interface produces no data. */
+ 
+ /** @brief Requests: This interface accepts no requests. */
+ 
+ /** @brief Command: Draw points (@ref PLAYER_GRAPHICS2D_CMD_POINTS)
+ Draw some points.
+ */
+ typedef struct player_graphics3d_cmd_draw
+ {
+   /** The drawing mode defining how teh verticies should be interpreted */
+   uint32_t draw_mode;
+   /** Number of points in this packet. */
+   uint32_t points_count;
+   /** Array of points. */
+   player_point_3d_t points[PLAYER_GRAPHICS3D_MAX_POINTS];
+   /** Color in which the points should be drawn. */
+   player_color_t color;
+   
+ } player_graphics3d_cmd_draw_t;
+ 
  
+ /** @} */
  
  // 
/////////////////////////////////////////////////////////////////////////////



_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to