CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vidprefs.h

00001 /*
00002     Copyright (C) 2002 by Jorrit Tyberghein
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License as published by the Free Software Foundation; either
00007     version 2 of the License, or (at your option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public
00015     License along with this library; if not, write to the Free
00016     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017 */
00018 
00019 #ifndef __CS_VIDPREFS_H__
00020 #define __CS_VIDPREFS_H__
00021 
00022 #include "csextern.h"
00023 
00024 #include "cstypes.h"
00025 #include "csutil/csstring.h"
00026 #include "csutil/ref.h"
00027 
00028 struct iObjectRegistry;
00029 struct iEvent;
00030 struct iVFS;
00031 struct iAws;
00032 struct iAwsCanvas;
00033 struct iAwsSource;
00034 struct iGraphics3D;
00035 struct iGraphics2D;
00036 struct iFontServer;
00037 struct iImageIO;
00038 
00046 class CS_CRYSTALSPACE_EXPORT csVideoPreferences
00047 {
00048 private:
00049   iObjectRegistry* object_reg;
00050   csRef<iVFS> vfs;
00051   csRef<iAws> aws;
00052   csRef<iGraphics3D> g3d;
00053   csRef<iGraphics2D> g2d;
00054   csRef<iFontServer> fontserv;
00055 
00056   csString mode;
00057 
00058   bool exit_loop;
00059 
00060   bool SetupWindow ();
00061 
00062   void SetSoftwareL (iAwsSource *source);
00063   void SetOpenGLL (iAwsSource *source);
00064   static void SetSoftware (intptr_t vidprefs, iAwsSource *source);
00065   static void SetOpenGL (intptr_t vidprefs, iAwsSource *source);
00066 
00067 public:
00071   csVideoPreferences ();
00072 
00076   ~csVideoPreferences ();
00077 
00082   bool Setup (iObjectRegistry* object_reg);
00083 
00088   bool HandleEvent (iEvent &Event);
00089 
00093   const char* GetModePlugin()
00094   { return mode; }
00095 };
00096 
00097 #endif // __CS_VIDPREFS_H__
00098 

Generated for Crystal Space by doxygen 1.4.4