1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* OPCODE - Optimized Collision Detection
* Copyright (C) 2001 Pierre Terdiman
* Homepage: http://www.codercorner.com/Opcode.htm
*/
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* Main file for Opcode.dll.
* \file Opcode.h
* \author Pierre Terdiman
* \date March, 20, 2001
*/
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Include Guard
#ifndef __OPCODE_H__
#define __OPCODE_H__
#include <Modules/Collision/ArkCollision.h>
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Compilation messages
#ifdef _MSC_VER
#if defined(OPCODEDISTRIB_EXPORTS)
#pragma message("Compiling OPCODE")
#elif !defined(OPCODEDISTRIB_EXPORTS)
#pragma message("Using OPCODE")
#endif
#endif
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Preprocessor
#ifdef WIN32
#ifdef OPCODEDISTRIB_EXPORTS
#define OPCODE_API __declspec(dllexport)
#else
#define OPCODE_API __declspec(dllimport)
#endif
#else
#define OPCODE_API
#define __stdcall
#define __forceinline inline
#endif
#ifndef __ICECORE_H__
#ifdef WIN32
#include <windows.h>
#include <windowsx.h>
#include <shlobj.h>
#include <mmsystem.h>
#endif // WIN32
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include <stdarg.h>
#include <time.h>
#include <float.h>
#ifndef ASSERT
#define ASSERT assert
#endif
#define Log
#define gEC_OutOfMemory 0
#define Alignment
inline void SetIceError (const char *s, int e = gEC_OutOfMemory) {}
#include "OPC_Types.h"
#include "OPC_FPU.h"
#include "OPC_MemoryMacros.h"
#endif
#ifndef __ICEMATHS_H__
#include <math.h>
#endif
namespace Opcode
{
#ifndef __ICECORE_H__
#include "OPC_Container.h"
#endif
#ifndef __ICEMATHS_H__
#include "OPC_Point.h"
#include "OPC_Matrix3x3.h"
#include "OPC_Matrix4x4.h"
#endif
#ifndef __MESHMERIZER_H__
#include "OPC_Triangle.h"
#include "OPC_AABB.h"
#endif
// Bulk-of-the-work
#include "OPC_Common.h"
#include "OPC_TreeBuilders.h"
#include "OPC_AABBTree.h"
#include "OPC_OptimizedTree.h"
#include "OPC_Model.h"
#include "OPC_TreeCollider.h"
}
#endif // __OPCODE_H__
|