| 1 |
|
| 2 |
// Should be included by Opcode.h if needed |
| 3 |
|
| 4 |
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 5 |
// Include Guard |
| 6 |
#ifndef __OPC_ICEHOOK_H__ |
| 7 |
#define __OPC_ICEHOOK_H__ |
| 8 |
|
| 9 |
#define ICE_DONT_CHECK_COMPILER_OPTIONS |
| 10 |
|
| 11 |
// From Windows... |
| 12 |
typedef int BOOL; |
| 13 |
#ifndef FALSE |
| 14 |
#define FALSE 0 |
| 15 |
#endif |
| 16 |
|
| 17 |
#ifndef TRUE |
| 18 |
#define TRUE 1 |
| 19 |
#endif |
| 20 |
|
| 21 |
#include <stdio.h> |
| 22 |
#include <stdlib.h> |
| 23 |
#include <assert.h> |
| 24 |
#include <string.h> |
| 25 |
#include <float.h> |
| 26 |
#include <math.h> |
| 27 |
|
| 28 |
#ifndef ASSERT |
| 29 |
#define ASSERT(exp) {} |
| 30 |
#endif |
| 31 |
#define ICE_COMPILE_TIME_ASSERT(exp) extern char ICE_Dummy[ (exp) ? 1 : -1 ] |
| 32 |
|
| 33 |
#define Log {} |
| 34 |
#define SetIceError(a,b) false |
| 35 |
#define EC_OUTOFMEMORY "Out of memory" |
| 36 |
|
| 37 |
extern void OPCODE_NORETURN IceAbort(); |
| 38 |
|
| 39 |
#include "Ice/IcePreprocessor.h" |
| 40 |
|
| 41 |
#undef ICECORE_API |
| 42 |
#define ICECORE_API OPCODE_API |
| 43 |
|
| 44 |
#include "Ice/IceTypes.h" |
| 45 |
#include "Ice/IceFPU.h" |
| 46 |
#include "Ice/IceMemoryMacros.h" |
| 47 |
|
| 48 |
namespace IceCore |
| 49 |
{ |
| 50 |
#include "Ice/IceUtils.h" |
| 51 |
#include "Ice/IceContainer.h" |
| 52 |
#include "Ice/IcePairs.h" |
| 53 |
#include "Ice/IceRevisitedRadix.h" |
| 54 |
#include "Ice/IceRandom.h" |
| 55 |
} |
| 56 |
using namespace IceCore; |
| 57 |
|
| 58 |
#define ICEMATHS_API OPCODE_API |
| 59 |
namespace IceMaths |
| 60 |
{ |
| 61 |
#include "Ice/IceAxes.h" |
| 62 |
#include "Ice/IcePoint.h" |
| 63 |
#include "Ice/IceHPoint.h" |
| 64 |
#include "Ice/IceMatrix3x3.h" |
| 65 |
#include "Ice/IceMatrix4x4.h" |
| 66 |
#include "Ice/IcePlane.h" |
| 67 |
#include "Ice/IceRay.h" |
| 68 |
#include "Ice/IceIndexedTriangle.h" |
| 69 |
#include "Ice/IceTriangle.h" |
| 70 |
#include "Ice/IceTriList.h" |
| 71 |
#include "Ice/IceAABB.h" |
| 72 |
#include "Ice/IceOBB.h" |
| 73 |
#include "Ice/IceBoundingSphere.h" |
| 74 |
#include "Ice/IceSegment.h" |
| 75 |
#include "Ice/IceLSS.h" |
| 76 |
} |
| 77 |
using namespace IceMaths; |
| 78 |
|
| 79 |
|
| 80 |
#endif // __OPC_ICEHOOK_H__ |