CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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 "cstypes.h"
00023 #include "csutil/ref.h"
00024 
00025 struct iObjectRegistry;
00026 struct iEvent;
00027 struct iVFS;
00028 struct iAws;
00029 struct iAwsCanvas;
00030 struct iAwsSource;
00031 struct iGraphics3D;
00032 struct iGraphics2D;
00033 struct iFontServer;
00034 struct iImageIO;
00035 
00046 class csVideoPreferences
00047 {
00048 private:
00049   iObjectRegistry* object_reg;
00050   csRef<iVFS> vfs;
00051   csRef<iImageIO> imageio;
00052   csRef<iAws> aws;
00053   csRef<iAwsCanvas> aws_canvas;
00054   csRef<iGraphics3D> g3d;
00055   csRef<iGraphics2D> g2d;
00056   csRef<iFontServer> fontserv;
00057 
00058   int mode;     // 0 for software, 1, for OpenGL (@@@ temporary)
00059 
00060   bool exit_loop;
00061 
00062   bool SetupWindow ();
00063 
00064   void SetSoftwareL (iAwsSource *source);
00065   void SetOpenGLL (iAwsSource *source);
00066   static void SetSoftware (void* vidprefs, iAwsSource *source);
00067   static void SetOpenGL (void* vidprefs, iAwsSource *source);
00068 
00069 public:
00073   csVideoPreferences ();
00074 
00078   ~csVideoPreferences ();
00079 
00092   bool Setup (iObjectRegistry* object_reg);
00093 
00098   bool HandleEvent (iEvent &Event);
00099 
00103   void CleanUp ();
00104 
00110   void SelectMode ();
00111 };
00112 
00113 #endif // __CS_VIDPREFS_H__
00114 

Generated for Crystal Space by doxygen 1.2.14