Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/usability/src/libraries/core/CorePrereqs.h @ 7966

Last change on this file since 7966 was 7966, checked in by landauf, 13 years ago

some changes related to camera switching:

  • added ViewportEventListener (currently only listens to camera changes in a viewport)
  • Shader now correctly updates its visibility if the camera changes the scene
  • (the same lines of code also fix the weird Ogre behavior which was originally fixed in CameraManager)
  • GraphicsManager also updates the GUIManager's camera
  • if all cameras are destroyed, CameraManager now officially switches to NULL camera
  • Property svn:eol-style set to native
File size: 7.8 KB
RevLine 
[682]1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
[1502]3 *                    > www.orxonox.net <
[682]4 *
5 *
6 *   License notice:
7 *
8 *   This program is free software; you can redistribute it and/or
9 *   modify it under the terms of the GNU General Public License
10 *   as published by the Free Software Foundation; either version 2
11 *   of the License, or (at your option) any later version.
12 *
13 *   This program is distributed in the hope that it will be useful,
14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 *   GNU General Public License for more details.
17 *
18 *   You should have received a copy of the GNU General Public License
19 *   along with this program; if not, write to the Free Software
20 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 *
22 *   Author:
23 *      Reto Grieder
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29/**
[5929]30@file
31@brief
32    Shared library macros, enums, constants and forward declarations for the core library
[871]33*/
[682]34
35#ifndef _CorePrereqs_H__
36#define _CorePrereqs_H__
37
[2710]38#include "OrxonoxConfig.h"
[7169]39#include <boost/version.hpp>
[1062]40
[728]41//-----------------------------------------------------------------------
42// Shared library settings
43//-----------------------------------------------------------------------
[5929]44
[2710]45#if defined(ORXONOX_PLATFORM_WINDOWS) && !defined( CORE_STATIC_BUILD )
[728]46#  ifdef CORE_SHARED_BUILD
47#    define _CoreExport __declspec(dllexport)
48#  else
49#    if defined( __MINGW32__ )
50#      define _CoreExport
51#    else
52#      define _CoreExport __declspec(dllimport)
53#    endif
54#  endif
55#elif defined ( ORXONOX_GCC_VISIBILITY )
56#  define _CoreExport  __attribute__ ((visibility("default")))
57#else
58#  define _CoreExport
59#endif
[682]60
[5929]61//-----------------------------------------------------------------------
62// Constants
63//-----------------------------------------------------------------------
[728]64
[5929]65namespace orxonox
66{
67    static const uint32_t OBJECTID_UNKNOWN = static_cast<uint32_t>(-1);
68}
69
[682]70//-----------------------------------------------------------------------
[5929]71// Enums
[728]72//-----------------------------------------------------------------------
[5929]73
[728]74namespace orxonox
[684]75{
[3196]76    namespace XMLPort
[1052]77    {
[3196]78        enum Mode
79        {
[5929]80            NOP,
[3196]81            LoadObject,
82            SaveObject,
83            ExpandObject
84        };
85    }
[1052]86
[6536]87    namespace ConfigFileType
88    {
89        enum Value
90        {
91            Settings,
92            JoyStickCalibration,
93            CommandHistory
94            // Don't forget to adjust the array size in the ConfigFileManager when adding a new entry here!
95        };
96    }
97
[3196]98    namespace KeybindMode
[1502]99    {
[3280]100        enum Value
[3196]101        {
102            OnPress,
103            OnHold,
104            OnRelease,
105            None
106        };
[1502]107    };
[5929]108}
[1349]109
[5929]110//-----------------------------------------------------------------------
111// Forward declarations
112//-----------------------------------------------------------------------
113
114namespace orxonox
115{
[3196]116    typedef std::string LanguageEntryLabel;
[1024]117
[7271]118    template <class T, class U>
119    T orxonox_cast(U*);
120
[3196]121    class BaseObject;
122    template <class T>
123    class ClassFactory;
124    template <class T>
125    class ClassIdentifier;
126    class ClassTreeMask;
127    class ClassTreeMaskIterator;
128    class ClassTreeMaskNode;
129    class ClassTreeMaskObjectIterator;
[6021]130    class CommandLineParser;
[3196]131    class CommandLineArgument;
132    class ConfigFile;
133    class ConfigFileEntry;
134    class ConfigFileEntryComment;
135    class ConfigFileEntryValue;
136    class ConfigFileManager;
137    class ConfigFileSection;
138    class ConfigValueContainer;
139    class Core;
[7849]140    class DestructionListener;
[5693]141    class DynLib;
142    class DynLibManager;
[3196]143    struct Event;
[5929]144    class EventState;
[3196]145    class Factory;
[5929]146    class Game;
147    class GameState;
148    struct GameStateInfo;
149    struct GameStateTreeNode;
[3370]150    class GraphicsManager;
151    class GUIManager;
[3196]152    class Identifier;
153    template <class T>
154    class Iterator;
155    class Language;
[7284]156    class LuaFunctor;
[5695]157    class LuaState;
158    class MemoryArchive;
159    class MemoryArchiveFactory;
[3196]160    class MetaObjectList;
161    class MetaObjectListElement;
162    class Namespace;
163    class NamespaceNode;
164    template <class T>
165    class ObjectList;
166    class ObjectListBase;
167    class ObjectListBaseElement;
168    template <class T>
169    class ObjectListElement;
170    template <class T>
171    class ObjectListIterator;
[3370]172    class OgreWindowEventListener;
[3196]173    class OrxonoxClass;
[5929]174    class PathConfig;
[5695]175    struct ResourceInfo;
[6536]176    class SettingsConfigFile;
[3196]177    template <class T>
[5929]178    class SmartPtr;
179    template <class T>
[3196]180    class SubclassIdentifier;
181    class Template;
[5929]182    class Thread;
183    class ThreadPool;
[7966]184    class ViewportEventListener;
[5929]185    template <class T>
186    class WeakPtr;
[3327]187    class WindowEventListener;
[3196]188    class XMLFile;
189    class XMLNameListener;
190    template <class T, class O>
191    class XMLPortClassObjectContainer;
192    template <class T>
193    class XMLPortClassParamContainer;
194    class XMLPortObjectContainer;
195    class XMLPortParamContainer;
[1219]196
[7284]197    // Command
198    class ArgumentCompleter;
199    class ArgumentCompletionListElement;
200    class CommandEvaluation;
201    class ConsoleCommand;
202    class Executor;
203    template <class T>
204    class ExecutorMember;
205    class ExecutorStatic;
206    class Functor;
207    template <class O>
208    class FunctorMember;
209    typedef FunctorMember<void> FunctorStatic;
210    template <class F, class O>
211    class FunctorPointer;
212    class IOConsole;
213    class IRC;
214    class Shell;
215    class ShellListener;
216    class TclBind;
217    struct TclInterpreterBundle;
218    template <class T>
219    class TclThreadList;
220    class TclThreadManager;
221
[5929]222    // Input
[3196]223    class BaseCommand;
224    class BufferedParamCommand;
225    class Button;
226    class HalfAxis;
227    class InputBuffer;
[3327]228    class InputDevice;
229    template <class Traits>
230    class InputDeviceTemplated;
231    class InputHandler;
[3196]232    class InputManager;
233    class InputState;
[5929]234    struct InputStatePriority;
235    class JoyStickQuantityListener;
[3327]236    class JoyStick;
[5929]237    class KeyBinder;
238    class KeyBinderManager;
[3327]239    class Keyboard;
[3196]240    class KeyDetector;
[5929]241    class KeyEvent;
242    class Mouse;
[3196]243    class ParamCommand;
244    class SimpleCommand;
[682]245}
246
[7284]247#include "command/FunctorPtr.h"
248#include "command/ExecutorPtr.h"
249
[3196]250// CppTcl
251namespace Tcl
252{
253    class interpreter;
254    class object;
255}
256
257// Boost
[3304]258namespace boost
[3318]259{
[7169]260#if (BOOST_VERSION < 104400)
[3304]261    namespace filesystem
262    {
263        struct path_traits;
264        template <class String, class Traits> class basic_path;
265        typedef basic_path<std::string, path_traits> path;
266    }
[7169]267#else
268    namespace filesystem2
269    {
270        struct path_traits;
271        template <class String, class Traits> class basic_path;
272        typedef basic_path<std::string, path_traits> path;
273    }
274    namespace filesystem
275    {
276        using filesystem2::basic_path;
277        using filesystem2::path_traits;
278        using filesystem2::path;
279    }
280#endif
[3304]281    class thread;
282    class mutex;
[3318]283    class shared_mutex;
284    class condition_variable;
[3304]285}
[3196]286
[5695]287// Ogre
288namespace Ogre
289{
290    class DataStream;
291    template <class T> class SharedPtr;
292    typedef SharedPtr<DataStream> DataStreamPtr;
293}
294namespace orxonox
295{
296    // Import the Ogre::DataStream
297    using Ogre::DataStream;
298    using Ogre::DataStreamPtr;
299}
300
[3370]301// CEGUI
302namespace CEGUI
303{
304    class DefaultLogger;
305    class Logger;
306    class LuaScriptModule;
307
308    class OgreCEGUIRenderer;
309    class OgreCEGUIResourceProvider;
310    class OgreCEGUITexture;
311}
312
313// Lua
314struct lua_State;
315
[3196]316// TinyXML and TinyXML++
317class TiXmlString;
318class TiXmlOutStream;
319class TiXmlNode;
320class TiXmlHandle;
321class TiXmlDocument;
322class TiXmlElement;
323class TiXmlComment;
324class TiXmlUnknown;
325class TiXmlAttribute;
326class TiXmlText;
327class TiXmlDeclaration;
328class TiXmlParsingData;
329namespace ticpp
330{
331    class Document;
332    class Element;
333    class Declaration;
334    class StylesheetReference;
335    class Text;
336    class Comment;
337    class Attribute;
338}
339namespace orxonox
340{
341    using ticpp::Element;
342}
343
[682]344#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.