diff options
Diffstat (limited to 'libs/ode-0.16.1/OPCODE/Opcode.cpp')
-rw-r--r-- | libs/ode-0.16.1/OPCODE/Opcode.cpp | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/libs/ode-0.16.1/OPCODE/Opcode.cpp b/libs/ode-0.16.1/OPCODE/Opcode.cpp new file mode 100644 index 0000000..444619a --- /dev/null +++ b/libs/ode-0.16.1/OPCODE/Opcode.cpp @@ -0,0 +1,82 @@ +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +/* + * OPCODE - Optimized Collision Detection + * Copyright (C) 2001 Pierre Terdiman + * Homepage: http://www.codercorner.com/Opcode.htm + */ +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +/** + * Main file for Opcode.dll. + * \file Opcode.cpp + * \author Pierre Terdiman + * \date March, 20, 2001 + */ +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +/* + Finding a good name is difficult! + Here's the draft for this lib.... Spooky, uh? + + VOID? Very Optimized Interference Detection + ZOID? Zappy's Optimized Interference Detection + CID? Custom/Clever Interference Detection + AID / ACID! Accurate Interference Detection + QUID? Quick Interference Detection + RIDE? Realtime Interference DEtection + WIDE? Wicked Interference DEtection (....) + GUID! + KID ! k-dop interference detection :) + OPCODE! OPtimized COllision DEtection +*/ + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Precompiled Header +#include "Stdafx.h" + +using namespace Opcode; + + +static OPCODE_AbortHandler g_fnAbortHandler = NULL; + + +bool Opcode::InitOpcode(OPCODE_AbortHandler fnAbortHandler/*=NULL*/) +{ + //Log("// Initializing OPCODE\n\n"); +// LogAPIInfo(); + + g_fnAbortHandler = fnAbortHandler; + return true; +} + +bool Opcode::CloseOpcode() +{ + //Log("// Closing OPCODE\n\n"); + + return true; +} + + +#ifdef ICE_MAIN + +void ModuleAttach(HINSTANCE hinstance) +{ +} + +void ModuleDetach() +{ +} + +#endif + +/*extern */ +void OPCODE_NORETURN IceAbort() +{ + if (g_fnAbortHandler != NULL) + { + g_fnAbortHandler(); + } + + abort(); +} |