RenderStack

Data Structures

struct  rs_pointer
struct  rs_controller
struct  rs_context
struct  rs_rectangle
 Rectangle. More...

Namespaces

namespace  renderstack

Defines

#define RS_ASSERT(_expression)   if(!(_expression)){rs_application_fail("ASSERTION FAILED:" #_expression "\n file:" __FILE__ "\n");}
#define RS_BEGIN_EXTERN_C
#define RS_END_EXTERN_C
#define RS_PI   3.14159265358979323846f
#define RS_TWO_PI   (2.0f * RS_PI)
#define RS_HALF_PI   (0.5f * RS_PI)
#define RS_EPSILON   (0.00001f)
#define RS_NO_ERROR   0x1000
#define RS_INVALID_ENUM   0x1001
#define RS_INVALID_VALUE   0x1002
#define RS_INVALID_OPERATION   0x1003
#define RS_OUT_OF_MEMORY   0x1004
#define RS_NAME_LENGTH   128
#define RS_MIN(a, b)   ((a)<(b)?(a):(b))
#define RS_MAX(a, b)   ((a)>(b)?(a):(b))
#define RS_NEAR_ZERO(x)   (fabsf(x) <= RS_EPSILON)
#define RS_TOLERANCE(x, y)   (fabsf(x - y) <= RS_EPSILON * RS_MAX(1.0f, RS_MAX(fabsf(x), fabsf(y))))
#define RS_GAMEPAD_DPAD_UP   0x0001
#define RS_GAMEPAD_DPAD_DOWN   0x0002
#define RS_GAMEPAD_DPAD_LEFT   0x0004
#define RS_GAMEPAD_DPAD_RIGHT   0x0008
#define RS_GAMEPAD_START   0x0010
#define RS_GAMEPAD_BACK   0x0020
#define RS_GAMEPAD_LEFT_THUMB   0x0040
#define RS_GAMEPAD_RIGHT_THUMB   0x0080
#define RS_GAMEPAD_LEFT_SHOULDER   0x0100
#define RS_GAMEPAD_RIGHT_SHOULDER   0x0200
#define RS_GAMEPAD_A   0x1000
#define RS_GAMEPAD_B   0x2000
#define RS_GAMEPAD_X   0x4000
#define RS_GAMEPAD_Y   0x8000

Functions

RS_BEGIN_EXTERN_C int rs_application_begin (void)
void rs_application_end (char *message)
void rs_application_update (void)
void rs_application_reshape (void)
void rs_application_fail (char *message)
struct rs_contextrs_context (void)
struct rs_pointerrs_pointer (void)

Define Documentation

#define RS_ASSERT ( _expression   )     if(!(_expression)){rs_application_fail("ASSERTION FAILED:" #_expression "\n file:" __FILE__ "\n");}

Definition at line 35 of file rs.h.

#define RS_BEGIN_EXTERN_C

Definition at line 42 of file rs.h.

#define RS_END_EXTERN_C

Definition at line 43 of file rs.h.

#define RS_PI   3.14159265358979323846f

Definition at line 46 of file rs.h.

#define RS_TWO_PI   (2.0f * RS_PI)

Definition at line 47 of file rs.h.

#define RS_HALF_PI   (0.5f * RS_PI)

Definition at line 48 of file rs.h.

#define RS_EPSILON   (0.00001f)

Definition at line 49 of file rs.h.

#define RS_NO_ERROR   0x1000

Definition at line 51 of file rs.h.

#define RS_INVALID_ENUM   0x1001

Definition at line 52 of file rs.h.

#define RS_INVALID_VALUE   0x1002

Definition at line 53 of file rs.h.

#define RS_INVALID_OPERATION   0x1003

Definition at line 54 of file rs.h.

#define RS_OUT_OF_MEMORY   0x1004

Definition at line 55 of file rs.h.

#define RS_NAME_LENGTH   128

Definition at line 56 of file rs.h.

#define RS_MIN ( a,
 )     ((a)<(b)?(a):(b))

Definition at line 57 of file rs.h.

#define RS_MAX ( a,
 )     ((a)>(b)?(a):(b))

Definition at line 58 of file rs.h.

#define RS_NEAR_ZERO (  )     (fabsf(x) <= RS_EPSILON)

Definition at line 59 of file rs.h.

#define RS_TOLERANCE ( x,
 )     (fabsf(x - y) <= RS_EPSILON * RS_MAX(1.0f, RS_MAX(fabsf(x), fabsf(y))))

Definition at line 60 of file rs.h.

#define RS_GAMEPAD_DPAD_UP   0x0001

Definition at line 62 of file rs.h.

#define RS_GAMEPAD_DPAD_DOWN   0x0002

Definition at line 63 of file rs.h.

#define RS_GAMEPAD_DPAD_LEFT   0x0004

Definition at line 64 of file rs.h.

#define RS_GAMEPAD_DPAD_RIGHT   0x0008

Definition at line 65 of file rs.h.

#define RS_GAMEPAD_START   0x0010

Definition at line 66 of file rs.h.

#define RS_GAMEPAD_BACK   0x0020

Definition at line 67 of file rs.h.

#define RS_GAMEPAD_LEFT_THUMB   0x0040

Definition at line 68 of file rs.h.

#define RS_GAMEPAD_RIGHT_THUMB   0x0080

Definition at line 69 of file rs.h.

#define RS_GAMEPAD_LEFT_SHOULDER   0x0100

Definition at line 70 of file rs.h.

#define RS_GAMEPAD_RIGHT_SHOULDER   0x0200

Definition at line 71 of file rs.h.

#define RS_GAMEPAD_A   0x1000

Definition at line 72 of file rs.h.

#define RS_GAMEPAD_B   0x2000

Definition at line 73 of file rs.h.

#define RS_GAMEPAD_X   0x4000

Definition at line 74 of file rs.h.

#define RS_GAMEPAD_Y   0x8000

Definition at line 75 of file rs.h.


Function Documentation

RS_BEGIN_EXTERN_C int rs_application_begin ( void   ) 
void rs_application_end ( char *  message  ) 
void rs_application_update ( void   ) 
void rs_application_reshape ( void   ) 
void rs_application_fail ( char *  message  ) 
struct rs_context* rs_context ( void   )  [read]
struct rs_pointer* rs_pointer ( void   )  [read]
Generated on Sun Apr 11 12:23:11 2010 for RenderStack by  doxygen 1.6.3