vrshoot

annotate libs/assimp/irrXML/irrTypes.h @ 3:c179c72369be

rename candy->vr
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 03 Feb 2014 08:52:13 +0200
parents
children
rev   line source
nuclear@0 1 // Copyright (C) 2002-2005 Nikolaus Gebhardt
nuclear@0 2 // This file is part of the "Irrlicht Engine".
nuclear@0 3 // For conditions of distribution and use, see copyright notice in irrlicht.h
nuclear@0 4
nuclear@0 5 #ifndef __IRR_TYPES_H_INCLUDED__
nuclear@0 6 #define __IRR_TYPES_H_INCLUDED__
nuclear@0 7
nuclear@0 8 namespace irr
nuclear@0 9 {
nuclear@0 10
nuclear@0 11 //! 8 bit unsigned variable.
nuclear@0 12 /** This is a typedef for unsigned char, it ensures portability of the engine. */
nuclear@0 13 typedef unsigned char u8;
nuclear@0 14
nuclear@0 15 //! 8 bit signed variable.
nuclear@0 16 /** This is a typedef for signed char, it ensures portability of the engine. */
nuclear@0 17 typedef signed char s8;
nuclear@0 18
nuclear@0 19 //! 8 bit character variable.
nuclear@0 20 /** This is a typedef for char, it ensures portability of the engine. */
nuclear@0 21 typedef char c8;
nuclear@0 22
nuclear@0 23
nuclear@0 24
nuclear@0 25 //! 16 bit unsigned variable.
nuclear@0 26 /** This is a typedef for unsigned short, it ensures portability of the engine. */
nuclear@0 27 typedef unsigned short u16;
nuclear@0 28
nuclear@0 29 //! 16 bit signed variable.
nuclear@0 30 /** This is a typedef for signed short, it ensures portability of the engine. */
nuclear@0 31 typedef signed short s16;
nuclear@0 32
nuclear@0 33
nuclear@0 34
nuclear@0 35 //! 32 bit unsigned variable.
nuclear@0 36 /** This is a typedef for unsigned int, it ensures portability of the engine. */
nuclear@0 37 typedef unsigned int u32;
nuclear@0 38
nuclear@0 39 //! 32 bit signed variable.
nuclear@0 40 /** This is a typedef for signed int, it ensures portability of the engine. */
nuclear@0 41 typedef signed int s32;
nuclear@0 42
nuclear@0 43
nuclear@0 44
nuclear@0 45 // 64 bit signed variable.
nuclear@0 46 // This is a typedef for __int64, it ensures portability of the engine.
nuclear@0 47 // This type is currently not used by the engine and not supported by compilers
nuclear@0 48 // other than Microsoft Compilers, so it is outcommented.
nuclear@0 49 //typedef __int64 s64;
nuclear@0 50
nuclear@0 51
nuclear@0 52
nuclear@0 53 //! 32 bit floating point variable.
nuclear@0 54 /** This is a typedef for float, it ensures portability of the engine. */
nuclear@0 55 typedef float f32;
nuclear@0 56
nuclear@0 57 //! 64 bit floating point variable.
nuclear@0 58 /** This is a typedef for double, it ensures portability of the engine. */
nuclear@0 59 typedef double f64;
nuclear@0 60
nuclear@0 61
nuclear@0 62 } // end namespace
nuclear@0 63
nuclear@0 64
nuclear@0 65 // define the wchar_t type if not already built in.
nuclear@0 66 #ifdef _MSC_VER
nuclear@0 67 #ifndef _WCHAR_T_DEFINED
nuclear@0 68 //! A 16 bit wide character type.
nuclear@0 69 /**
nuclear@0 70 Defines the wchar_t-type.
nuclear@0 71 In VS6, its not possible to tell
nuclear@0 72 the standard compiler to treat wchar_t as a built-in type, and
nuclear@0 73 sometimes we just don't want to include the huge stdlib.h or wchar.h,
nuclear@0 74 so we'll use this.
nuclear@0 75 */
nuclear@0 76 typedef unsigned short wchar_t;
nuclear@0 77 #define _WCHAR_T_DEFINED
nuclear@0 78 #endif // wchar is not defined
nuclear@0 79 #endif // microsoft compiler
nuclear@0 80
nuclear@0 81 //! define a break macro for debugging only in Win32 mode.
nuclear@0 82 // WORKAROUND (assimp): remove __asm
nuclear@0 83 #if defined(WIN32) && defined(_MSC_VER) && defined(_DEBUG)
nuclear@0 84 #if defined(_M_IX86)
nuclear@0 85 #define _IRR_DEBUG_BREAK_IF( _CONDITION_ ) /*if (_CONDITION_) {_asm int 3}*/
nuclear@0 86 #else
nuclear@0 87 #define _IRR_DEBUG_BREAK_IF( _CONDITION_ )
nuclear@0 88 #endif
nuclear@0 89 #else
nuclear@0 90 #define _IRR_DEBUG_BREAK_IF( _CONDITION_ )
nuclear@0 91 #endif
nuclear@0 92
nuclear@0 93 //! Defines a small statement to work around a microsoft compiler bug.
nuclear@0 94 /** The microsft compiler 7.0 - 7.1 has a bug:
nuclear@0 95 When you call unmanaged code that returns a bool type value of false from managed code,
nuclear@0 96 the return value may appear as true. See
nuclear@0 97 http://support.microsoft.com/default.aspx?kbid=823071 for details.
nuclear@0 98 Compiler version defines: VC6.0 : 1200, VC7.0 : 1300, VC7.1 : 1310, VC8.0 : 1400*/
nuclear@0 99
nuclear@0 100 // WORKAROUND (assimp): remove __asm
nuclear@0 101 #if defined(WIN32) && defined(_MSC_VER) && (_MSC_VER > 1299) && (_MSC_VER < 1400)
nuclear@0 102 #define _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX /*__asm mov eax,100*/
nuclear@0 103 #else
nuclear@0 104 #define _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX
nuclear@0 105 #endif // _IRR_MANAGED_MARSHALLING_BUGFIX
nuclear@0 106
nuclear@0 107 #endif // __IRR_TYPES_H_INCLUDED__
nuclear@0 108