diff options
author | sanine <sanine.not@pm.me> | 2022-10-01 20:59:36 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-10-01 20:59:36 -0500 |
commit | c5fc66ee58f2c60f2d226868bb1cf5b91badaf53 (patch) | |
tree | 277dd280daf10bf77013236b8edfa5f88708c7e0 /libs/ode-0.16.1/OPCODE/Opcode.cpp | |
parent | 1cf9cc3408af7008451f9133fb95af66a9697d15 (diff) |
add ode
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(); +} |