CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | 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/ref.h"
00026 
00027 struct iObjectRegistry;
00028 struct iEvent;
00029 struct iVFS;
00030 struct iAws;
00031 struct iAwsCanvas;
00032 struct iAwsSource;
00033 struct iGraphics3D;
00034 struct iGraphics2D;
00035 struct iFontServer;
00036 struct iImageIO;
00037 
00048 class CS_CSTOOL_EXPORT csVideoPreferences
00049 {
00050 private:
00051   iObjectRegistry* object_reg;
00052   csRef<iVFS> vfs;
00053   csRef<iImageIO> imageio;
00054   csRef<iAws> aws;
00055   csRef<iAwsCanvas> aws_canvas;
00056   csRef<iGraphics3D> g3d;
00057   csRef<iGraphics2D> g2d;
00058   csRef<iFontServer> fontserv;
00059 
00060   int mode;     // 0 for software, 1, for OpenGL (@@@ temporary)
00061 
00062   bool exit_loop;
00063 
00064   bool SetupWindow ();
00065 
00066   void SetSoftwareL (iAwsSource *source);
00067   void SetOpenGLL (iAwsSource *source);
00068   static void SetSoftware (void* vidprefs, iAwsSource *source);
00069   static void SetOpenGL (void* vidprefs, iAwsSource *source);
00070 
00071 public:
00075   csVideoPreferences ();
00076 
00080   ~csVideoPreferences ();
00081 
00094   bool Setup (iObjectRegistry* object_reg);
00095 
00100   bool HandleEvent (iEvent &Event);
00101 
00105   void CleanUp ();
00106 
00112   void SelectMode ();
00113 };
00114 
00115 #endif // __CS_VIDPREFS_H__
00116 

Generated for Crystal Space by doxygen 1.3.9.1