Added: dSpaceSetSublevel/dSpaceGetSublevel and possibility to collide a space as...
[ode.git] / ode / src / odeou.h
blob25bb70b74bd7f3340639212ec3a3c4443fae7d77
1 /*************************************************************************
2 * *
3 * OU library interface file for Open Dynamics Engine, *
4 * Copyright (C) 2008 Oleh Derevenko. All rights reserved. *
5 * Email: odar@eleks.com (change all "a" to "e") *
6 * *
7 * Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. *
8 * All rights reserved. Email: russ@q12.org Web: www.q12.org *
9 * *
10 * *
11 * This library is free software; you can redistribute it and/or *
12 * modify it under the terms of EITHER: *
13 * (1) The GNU Lesser General Public License as published by the Free *
14 * Software Foundation; either version 2.1 of the License, or (at *
15 * your option) any later version. The text of the GNU Lesser *
16 * General Public License is included with this library in the *
17 * file LICENSE.TXT. *
18 * (2) The BSD-style license that is included with this library in *
19 * the file LICENSE-BSD.TXT. *
20 * *
21 * This library is distributed in the hope that it will be useful, *
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files *
24 * LICENSE.TXT and LICENSE-BSD.TXT for more details. *
25 * *
26 *************************************************************************/
30 ODE interface to OU library functions.
35 #ifndef _ODE_ODEOU_H_
36 #define _ODE_ODEOU_H_
39 #if dOU_ENABLED
41 #include <ou/assert.h>
42 #include <ou/enumarrays.h>
43 #include <ou/macros.h>
44 #include <ou/templates.h>
45 #include <ou/typewrapper.h>
46 #include <ou/simpleflags.h>
47 #include <ou/customization.h>
49 #if dATOMICS_ENABLED
50 #include <ou/atomic.h>
51 #include <ou/atomicflags.h>
52 #endif
54 #if dTLS_ENABLED
55 #include <ou/threadlocalstorage.h>
56 #endif
59 using namespace _OU_NAMESPACE;
62 class COdeOu
64 public:
65 static bool DoOUCustomizations();
66 static void UndoOUCustomizations();
68 #if dATOMICS_ENABLED
69 static bool InitializeAtomics() { return InitializeAtomicAPI(); }
70 static void FinalizeAtomics() { FinalizeAtomicAPI(); }
71 #endif
75 #endif // dOU_ENABLED
78 #endif // _ODE_ODEOU_H_