UNDER CONSTRUCTION
Reference
Home
Overview
Hardware
News
Download
License
Documentation
Reference
Help
FAQs
Contributing
Contact
Links

Types.hpp File Reference


Detailed Description

Base header for the RSLib SDK.

This header contains basic data types and defines used through all RSLib files.

Definition in file Types.hpp.

Go to the source code of this file.


Namespaces

namespace  RSLib

Classes

class  RSLib::ReferableTempObject< T >

Defines

#define VIRTUAL   virtual
#define PURE   = 0
#define NULL   0
#define FALSE   0
#define TRUE   1
#define VOID   void
#define SUCCEEDED(Status)   ((HRESULT)(Status) >= 0)
#define FAILED(Status)   ((HRESULT)(Status)<0)
#define ARRAY_ITEMS(array)   (sizeof(array)/sizeof(array[0]))
#define ARRAY_BYTES(array)   (sizeof(array))
#define CAST(type, expression)   ((type)(expression))
#define SEEAS(type, object)   (*(type*)(void*)&(object))
#define REFERABLE_AS(type)   (RSLib::ReferableTempObject<type>)
#define UNREFERENCED_PARAM(x)   x
#define BRES_TO_URES(bRes)   ((bRes) ? 0x0000000 : 0x80000000)
#define IN
#define OUT
#define BEGINTRYBLOCK   try{
#define BEGINCATCHBLOCK(x)   }catch(x){
#define ENDCATCHBLOCK   }
#define ABS(a)   ( (a)> 0 ? (a) : (-(a)) )
#define MIN(a, b)   ( (a)<(b) ? (a) : (b) )
#define MAX(a, b)   ( (a)>(b) ? (a) : (b) )
#define MAX3(a, b, c)   (MAX(MAX(a,b),c))
#define MIN3(a, b, c)   (MIN(MIN(a,b),c))
#define CLAMP(x, a, b)   ((x) < (a)? (a) : ( (x) > (b) ? (b) : (x) ) )
#define CONSTRUCT(class, object)   new (&object) class
#define DESTRUCT(class, object)   object.~class()
#define BEGIN_ASSEMBLY   __asm {
#define ASSEMBLY   __asm
#define END_ASSEMBLY   }

Typedefs

typedef char CHAR8
typedef char * PCHAR8
typedef signed char INT8
typedef signed char * PINT8
typedef unsigned char UINT8
typedef unsigned char * PUINT8
typedef unsigned char BYTE
typedef unsigned char * PBYTE
typedef unsigned short CHAR16
typedef unsigned short * PCHAR16
typedef signed short INT16
typedef signed short * PINT16
typedef unsigned short UINT16
typedef unsigned short * PUINT16
typedef unsigned short WORD
typedef unsigned short * PWORD
typedef signed int INT32
typedef signed int * PINT32
typedef unsigned int UINT32
typedef unsigned int * PUINT32
typedef unsigned int FLAGS32
typedef unsigned int * PFLAGS32
typedef unsigned long BOOL32
typedef unsigned long * PBOOL32
typedef unsigned long DWORD
typedef unsigned long * PDWORD
typedef signed __int64 INT64
typedef signed __int64 * PINT64
typedef unsigned __int64 UINT64
typedef unsigned __int64 * PUINT64
typedef unsigned __int64 QWORD
typedef unsigned __int64 * PQWORD
typedef float FLT32
typedef float * PFLT32
typedef double FLT64
typedef double * PFLT64
typedef void * PVOID
typedef unsigned long int PTR32
typedef unsigned long int * PPTR32
typedef char CHAR
typedef short SHORT
typedef long LONG
typedef LONG HRESULT

Functions

template<class T, class O>
T & RSLib::SeeAs (O &o)
Last Updated on 2006/02/01 09:53:39 UTC info@haptiklibrary.org