Irrlicht 3D Engine
irrTypes.h File Reference
#include "IrrCompileConfig.h"
#include <wchar.h>

Go to the source code of this file.

Namespaces

 irr
 Everything in the Irrlicht Engine can be found in this namespace.
 

Macros

#define _IRR_DEBUG_BREAK_IF(_CONDITION_)
 define a break macro for debugging. More...
 
#define _IRR_DEPRECATED_
 Defines a deprecated macro which generates a warning at compile time. More...
 
#define _IRR_OVERRIDE_
 Defines an override macro, to protect virtual functions from typos and other mismatches. More...
 
#define _IRR_TEXT(X)   X
 
#define MAKE_IRR_ID(c0, c1, c2, c3)
 ignore VC8 warning deprecated More...
 
#define snprintf_irr   snprintf
 
#define swprintf_irr   swprintf
 

Typedefs

typedef char irr::c8
 8 bit character variable. More...
 
typedef float irr::f32
 32 bit floating point variable. More...
 
typedef double irr::f64
 64 bit floating point variable. More...
 
typedef char irr::fschar_t
 Type name for character type used by the file system. More...
 
typedef signed short irr::s16
 16 bit signed variable. More...
 
typedef signed int irr::s32
 32 bit signed variable. More...
 
typedef long long irr::s64
 64 bit signed variable. More...
 
typedef signed char irr::s8
 8 bit signed variable. More...
 
typedef unsigned short irr::u16
 16 bit unsigned variable. More...
 
typedef unsigned int irr::u32
 32 bit unsigned variable. More...
 
typedef unsigned long long irr::u64
 64 bit unsigned variable. More...
 
typedef unsigned char irr::u8
 8 bit unsigned variable. More...
 

Macro Definition Documentation

◆ _IRR_DEBUG_BREAK_IF

#define _IRR_DEBUG_BREAK_IF (   _CONDITION_)

define a break macro for debugging.

Definition at line 185 of file irrTypes.h.

◆ _IRR_DEPRECATED_

#define _IRR_DEPRECATED_

Defines a deprecated macro which generates a warning at compile time.

The usage is simple For typedef: typedef IRR_DEPRECATED int test1; For classes/structs: class IRR_DEPRECATED test2 { ... }; For methods: class test3 { IRR_DEPRECATED virtual void foo() {} }; For functions: template<class T> IRR_DEPRECATED void test4(void) {}

Definition at line 202 of file irrTypes.h.

◆ _IRR_OVERRIDE_

#define _IRR_OVERRIDE_

Defines an override macro, to protect virtual functions from typos and other mismatches.

Usage in a derived class: virtual void somefunc() IRR_OVERRIDE;

Definition at line 216 of file irrTypes.h.

◆ _IRR_TEXT

#define _IRR_TEXT (   X)    X

Definition at line 166 of file irrTypes.h.

◆ MAKE_IRR_ID

#define MAKE_IRR_ID (   c0,
  c1,
  c2,
  c3 
)
Value:
((irr::u32)(irr::u8)(c0) | ((irr::u32)(irr::u8)(c1) << 8) | \
((irr::u32)(irr::u8)(c2) << 16) | ((irr::u32)(irr::u8)(c3) << 24 ))
unsigned char u8
8 bit unsigned variable.
Definition: irrTypes.h:22
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:62

ignore VC8 warning deprecated

The Microsoft compiler creates four CC codes used in Irrlicht for simple ids some compilers can create those by directly writing the code like 'code', but some generate warnings so we use this macro here

Definition at line 243 of file irrTypes.h.

◆ snprintf_irr

#define snprintf_irr   snprintf

Definition at line 149 of file irrTypes.h.

◆ swprintf_irr

#define swprintf_irr   swprintf

Definition at line 148 of file irrTypes.h.