Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/ReferenceApplication/ReferenceAppLayer/include/OgreRefAppPrerequisites.h @ 3

Last change on this file since 3 was 3, checked in by anonymous, 17 years ago

=update

File size: 2.8 KB
Line 
1/*
2-----------------------------------------------------------------------------
3This source file is part of the OGRE Reference Application, a layer built
4on top of OGRE(Object-oriented Graphics Rendering Engine)
5For the latest info, see http://www.ogre3d.org/
6
7Copyright (c) 2000-2006 Torus Knot Software Ltd
8Also see acknowledgements in Readme.html
9
10This program is free software; you can redistribute it and/or modify it under
11the terms of the GNU Lesser General Public License as published by the Free Software
12Foundation; either version 2 of the License, or (at your option) any later
13version.
14
15This program is distributed in the hope that it will be useful, but WITHOUT
16ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
18
19You should have received a copy of the GNU Lesser General Public License along with
20this program; if not, write to the Free Software Foundation, Inc., 59 Temple
21Place - Suite 330, Boston, MA 02111-1307, USA, or go to
22http://www.gnu.org/copyleft/lesser.txt.
23
24You may alternatively use this source under the terms of a specific version of
25the OGRE Unrestricted License provided you have obtained such a license from
26Torus Knot Software Ltd.
27-----------------------------------------------------------------------------
28*/
29#ifndef __REFAPP_PREREQUISITES_H__
30#define __REFAPP_PREREQUISITES_H__
31
32// Include ODE standard C header
33#include <ode/ode.h>
34// Include ODE C++ headers
35#include <ode/odecpp.h>
36#include <ode/odecpp_collision.h>
37
38// Include main application-facing Ogre header
39#include <Ogre.h>
40
41
42// To save us some typing
43using namespace Ogre;
44
45namespace OgreRefApp {
46
47    #if (OGRE_PLATFORM == OGRE_PLATFORM_WIN32) && !defined(OGRE_STATIC_LIB)
48    // Export control
49    #   if defined( REFERENCEAPPLAYER_EXPORTS )
50    #       define _OgreRefAppExport __declspec( dllexport )
51    #   else
52    #       if defined( __MINGW32__ )
53    #           define _OgreRefAppExport
54    #       else
55    #               define _OgreRefAppExport __declspec( dllimport )
56    #       endif
57    #   endif
58    #else // Linux / Mac OSX etc
59    #   define _OgreRefAppExport
60    #endif
61
62    // Quick conversions
63    inline void OgreToOde(const Matrix3& ogre, dMatrix3& ode)
64    {
65        ode[0] = ogre[0][0];
66        ode[1] = ogre[0][1];
67        ode[2] = ogre[0][2];
68        ode[3] = ogre[0][3];
69        ode[4] = ogre[1][0];
70        ode[5] = ogre[1][1];
71        ode[6] = ogre[1][2];
72        ode[7] = ogre[1][3];
73        ode[8] = ogre[2][0];
74        ode[9] = ogre[2][1];
75        ode[10] = ogre[2][2];
76        ode[11] = ogre[2][3];
77    }
78
79
80    // Forward definitions of classes to reduce dependencies
81    class ApplicationObject;
82    class OgreHead;
83    class FinitePlane;
84    class Ball;
85    class Box;
86    class CollideCamera;
87
88}
89
90
91
92#endif
93
Note: See TracBrowser for help on using the repository browser.