source: OGRE/trunk/ogrenew/ReferenceApplication/ReferenceAppLayer/include/OgreRefAppPrerequisites.h @ 692

Revision 692, 2.5 KB checked in by mattausch, 19 years ago (diff)

adding ogre 1.2 and dependencies

RevLine 
[692]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-2005 The OGRE Team
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-----------------------------------------------------------------------------
24*/
25#ifndef __REFAPP_PREREQUISITES_H__
26#define __REFAPP_PREREQUISITES_H__
27
28// Include ODE standard C header
29#include <ode/ode.h>
30// Include ODE C++ headers
31#include <ode/odecpp.h>
32#include <ode/odecpp_collision.h>
33
34// Include main application-facing Ogre header
35#include <Ogre.h>
36
37
38// To save us some typing
39using namespace Ogre;
40
41namespace OgreRefApp {
42
43    #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
44    // Export control
45    #   if defined( REFERENCEAPPLAYER_EXPORTS )
46    #       define _OgreRefAppExport __declspec( dllexport )
47    #   else
48    #       define _OgreRefAppExport __declspec( dllimport )
49    #   endif
50    #else // Linux / Mac OSX etc
51    #   define _OgreRefAppExport
52    #endif
53
54    // Quick conversions
55    inline void OgreToOde(const Matrix3& ogre, dMatrix3& ode)
56    {
57        ode[0] = ogre[0][0];
58        ode[1] = ogre[0][1];
59        ode[2] = ogre[0][2];
60        ode[3] = ogre[0][3];
61        ode[4] = ogre[1][0];
62        ode[5] = ogre[1][1];
63        ode[6] = ogre[1][2];
64        ode[7] = ogre[1][3];
65        ode[8] = ogre[2][0];
66        ode[9] = ogre[2][1];
67        ode[10] = ogre[2][2];
68        ode[11] = ogre[2][3];
69    }
70
71
72    // Forward definitions of classes to reduce dependencies
73    class ApplicationObject;
74    class OgreHead;
75    class FinitePlane;
76    class Ball;
77    class Box;
78    class CollideCamera;
79
80}
81
82
83
84#endif
85
Note: See TracBrowser for help on using the repository browser.