KeosPlatformManager.h

Go to the documentation of this file.
00001 /*
00002  * This source file is part of KEOS (Free 3D Engine)
00003  * For the latest info, see http://www.keosengine.org/
00004  * E-mails : thierry.vouriot@keosengine.org, yeri@keosengine.org
00005  *
00006  * This program is free software; you can redistribute it and/or modify it under
00007  * the terms of the GNU Lesser General Public License as published by the Free Software
00008  * Foundation; either version 2 of the License, or (at your option) any later
00009  * version.
00010  *
00011  * This program is distributed in the hope that it will be useful, but WITHOUT
00012  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00013  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public License along with
00016  * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
00017  * Place - Suite 330, Boston, MA 02111-1307, USA, or go to
00018  * http://www.gnu.org/copyleft/lesser.txt.
00019  *
00020  */
00021 #ifndef KEOS_PLATFORMMANAGER_H
00022 #define KEOS_PLATFORMMANAGER_H
00023 
00024 #include "KeosPrerequisites.h"
00025 #include "KeosSingleton.h"
00026 
00027 namespace Keos
00028 {
00029 
00030   typedef void (*DLL_CREATETIMER)(CTimer** ppTimer);
00031   typedef void (*DLL_CREATECONFIGDIALOG)(IConfigDialog** ppDlg);
00032   typedef void (*DLL_CREATEERRORDIALOG)(IErrorDialog** ppDlg);
00033 
00034   typedef void (*DLL_DESTROYTIMER)(CTimer* ppTimer);
00035   typedef void (*DLL_DESTROYCONFIGDIALOG)(IConfigDialog* ppDlg);
00036   typedef void (*DLL_DESTROYERRORDIALOG)(IErrorDialog* ppDlg);
00037 
00038   typedef void (*DLL_GETVIDEOMODELIST) (StringVector* pList);
00039 
00040   //-----------------------------------------------------------------------
00044   class KEOS_EXPORT CPlatformManager : public CSingleton<CPlatformManager>
00045   {
00046     friend CSingleton<CPlatformManager>;
00047 
00048   protected:
00049 
00050     DLL_CREATETIMER m_pfCreateTimer;
00051     DLL_CREATECONFIGDIALOG m_pfCreateConfigDialog;
00052     DLL_CREATEERRORDIALOG m_pfCreateErrorDialog;
00053 
00054     DLL_DESTROYTIMER m_pfDestroyTimer;
00055     DLL_DESTROYCONFIGDIALOG m_pfDestroyConfigDialog;
00056     DLL_DESTROYERRORDIALOG m_pfDestroyErrorDialog;
00057 
00058     DLL_GETVIDEOMODELIST m_pfGetVideoModeList;
00059 
00060   public:
00063     CPlatformManager();
00064 
00067     CTimer* CreateTimer();
00068 
00072     void DestroyTimer(CTimer* pTimer);
00073 
00076     IConfigDialog* CreateConfigDialog();
00077 
00081     void DestroyConfigDialog(IConfigDialog* pDlg);
00082 
00085     IErrorDialog* CreateErrorDialog();
00086 
00090     void DestroyErrorDialog(IErrorDialog* pDlg);
00091 
00095     void GetVideoModeList(StringVector* pList);
00096   };
00097 
00098 } // namespace Keos
00099 
00100 #endif // KEOS_PLATFORMMANAGER_H

Generated on Fri Mar 9 14:29:02 2007 for Keos by  doxygen 1.5.1-p1