Update of /cvsroot/playerstage/code/player/client_libs/libplayerc
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3155/client_libs/libplayerc
Modified Files:
dev_graphics3d.c playerc.h
Log Message:
re-adde global argc and argv vars
Index: playerc.h
===================================================================
RCS file: /cvsroot/playerstage/code/player/client_libs/libplayerc/playerc.h,v
retrieving revision 1.254
retrieving revision 1.255
diff -C2 -d -r1.254 -r1.255
*** playerc.h 15 Feb 2008 08:42:37 -0000 1.254
--- playerc.h 22 Feb 2008 20:51:50 -0000 1.255
***************
*** 1,5 ****
/*
* libplayerc : a Player client library
! * Copyright (C) Andrew Howard 2002-2003
*
* This program is free software; you can redistribute it and/or
--- 1,5 ----
/*
* libplayerc : a Player client library
! * Copyright (C) Andrew Howard and contributors 2002-2007
*
* This program is free software; you can redistribute it and/or
***************
*** 31,39 ****
@brief A C client library for the @ref util_player
! libplayerc is a client library for the @ref util_player. It
! is written in C to maximize portability, and in the expectation that
users will write bindings for other languages (such as Python and
! Java) against this library; @ref player_clientlib_libplayerc_py "Python
bindings" are
! already available.
Be sure to check out the @ref libplayerc_example "example".
--- 31,39 ----
@brief A C client library for the @ref util_player
! libplayerc is a client library for the @ref util_player. It is
! written in C to maximize portability, and in the expectation that
users will write bindings for other languages (such as Python and
! Java) against this library; @ref player_clientlib_libplayerc_py
! "Python bindings" are already available.
Be sure to check out the @ref libplayerc_example "example".
***************
*** 41,44 ****
--- 41,48 ----
The @ref libplayerc_datamodes "data modes" section is important reading for
all
client writers.
+
+ libplayerc was originally written by Andrew Howard and is maintained
+ by the Player Project. Subsequent contributors include Brian Gerkey,
+ Geoffrey Biggs, Richard Vaughan.
*/
/** @{ */
***************
*** 98,101 ****
--- 102,106 ----
#define PLAYERC_TRANSPORT_UDP 2
+ #define PLAYERC_QUEUE_RING_SIZE 512
/** @} */
***************
*** 488,492 ****
/** @internal A circular queue used to buffer incoming data packets. */
! playerc_client_item_t qitems[512];
int qfirst, qlen, qsize;
--- 493,497 ----
/** @internal A circular queue used to buffer incoming data packets. */
! playerc_client_item_t qitems[PLAYERC_QUEUE_RING_SIZE];
int qfirst, qlen, qsize;
***************
*** 1667,1671 ****
--- 1672,1683 ----
int playerc_graphics3d_clear(playerc_graphics3d_t *device );
+ /** @brief Translate the drawing coordinate system in 3d */
+ int playerc_graphics3d_translate(playerc_graphics3d_t *device,
+ double x, double y, double z );
+
+ /** @brief Rotate the drawing coordinate system by [a] radians about the
vector described by [x,y,z] */
+ int playerc_graphics3d_rotate( playerc_graphics3d_t *device,
+ double a, double x, double y, double z );
/** @} */
Index: dev_graphics3d.c
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc/dev_graphics3d.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** dev_graphics3d.c 1 Nov 2007 22:16:16 -0000 1.4
--- dev_graphics3d.c 22 Feb 2008 20:51:50 -0000 1.5
***************
*** 81,84 ****
--- 81,112 ----
}
+ int playerc_graphics3d_translate(playerc_graphics3d_t *device,
+ double x, double y, double z )
+ {
+ player_graphics3d_cmd_translate_t cmd;
+ cmd.x = x;
+ cmd.y = y;
+ cmd.z = z;
+
+ return playerc_client_write(device->info.client, &device->info,
+ PLAYER_GRAPHICS3D_CMD_TRANSLATE,
+ &cmd, NULL);
+ }
+
+ int playerc_graphics3d_rotate( playerc_graphics3d_t *device,
+ double a, double x, double y, double z )
+ {
+ player_graphics3d_cmd_rotate_t cmd;
+ cmd.a = a;
+ cmd.x = x;
+ cmd.y = y;
+ cmd.z = z;
+
+ return playerc_client_write(device->info.client, &device->info,
+ PLAYER_GRAPHICS3D_CMD_ROTATE,
+ &cmd, NULL);
+ }
+
+
int playerc_graphics3d_draw(playerc_graphics3d_t *device,
player_graphics3d_draw_mode_t mode,
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit