Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

OgrePlatformManager.h

Go to the documentation of this file.
00001 /*
00002 -----------------------------------------------------------------------------
00003 This source file is part of OGRE
00004     (Object-oriented Graphics Rendering Engine)
00005 For the latest info, see http://ogre.sourceforge.net/
00006 
00007 Copyright © 2000-2002 The OGRE Team
00008 Also see acknowledgements in Readme.html
00009 
00010 This program is free software; you can redistribute it and/or modify it under
00011 the terms of the GNU Lesser General Public License as published by the Free Software
00012 Foundation; either version 2 of the License, or (at your option) any later
00013 version.
00014 
00015 This program is distributed in the hope that it will be useful, but WITHOUT
00016 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00017 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
00018 
00019 You should have received a copy of the GNU Lesser General Public License along with
00020 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
00021 Place - Suite 330, Boston, MA 02111-1307, USA, or go to
00022 http://www.gnu.org/copyleft/lesser.txt.
00023 -----------------------------------------------------------------------------
00024 */
00025 #ifndef __PlatformManager_H__
00026 
00027 #include "OgrePrerequisites.h"
00028 
00029 #include "OgreSingleton.h"
00030 #include "OgreRenderWindow.h"
00031 #include "OgreConfigDialog.h"
00032 #include "OgreErrorDialog.h"
00033 
00034 
00035 namespace Ogre {
00036     typedef void (*DLL_CREATECONFIGDIALOG)(ConfigDialog** ppDlg);
00037     typedef void (*DLL_CREATEERRORDIALOG)(ErrorDialog** ppDlg);
00038     typedef void (*DLL_CREATEINPUTREADER)(InputReader** ppReader);
00039 
00040     typedef void (*DLL_DESTROYCONFIGDIALOG)(ConfigDialog* ppDlg);
00041     typedef void (*DLL_DESTROYERRORDIALOG)(ErrorDialog* ppDlg);
00042     typedef void (*DLL_DESTROYINPUTREADER)(InputReader* ppReader);
00043 
00053     class _OgreExport PlatformManager : public Singleton<PlatformManager>
00054     {
00055     protected:
00056         DLL_CREATECONFIGDIALOG mpfCreateConfigDialog;
00057         DLL_CREATEERRORDIALOG mpfCreateErrorDialog;
00058         DLL_CREATEINPUTREADER mpfCreateInputReader;
00059 
00060         DLL_DESTROYCONFIGDIALOG mpfDestroyConfigDialog;
00061         DLL_DESTROYERRORDIALOG mpfDestroyErrorDialog;
00062         DLL_DESTROYINPUTREADER mpfDestroyInputReader;
00063     public:
00066         PlatformManager();
00067 
00074         ConfigDialog* createConfigDialog();
00075 
00081         void destroyConfigDialog(ConfigDialog* dlg);
00082 
00089         ErrorDialog* createErrorDialog();
00090 
00096         void destroyErrorDialog(ErrorDialog* dlg);
00097 
00104         InputReader* createInputReader();
00105 
00111         void destroyInputReader(InputReader* reader);
00112 
00128         static PlatformManager& getSingleton(void);
00129     };
00130 
00131 
00132 }
00133 
00134 #endif

Copyright © 2002 by The OGRE Team