|
vidprefs.h00001 /* 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 __CSVIDPREFS_H__ 00020 #define __CSVIDPREFS_H__ 00021 00022 #include "cstypes.h" 00023 00024 struct iObjectRegistry; 00025 struct iEvent; 00026 struct iVFS; 00027 struct iAws; 00028 struct iAwsCanvas; 00029 struct iAwsSource; 00030 struct iGraphics3D; 00031 struct iGraphics2D; 00032 struct iFontServer; 00033 struct iImageIO; 00034 struct iPluginManager; 00035 00046 class csVideoPreferences 00047 { 00048 private: 00049 iObjectRegistry* object_reg; 00050 iVFS* vfs; 00051 iImageIO* imageio; 00052 iAws* aws; 00053 iAwsCanvas* aws_canvas; 00054 iGraphics3D* g3d; 00055 iGraphics2D* g2d; 00056 iFontServer* fontserv; 00057 iPluginManager* plugmgr; 00058 00059 int mode; // 0 for software, 1, for OpenGL (@@@ temporary) 00060 00061 bool exit_loop; 00062 00063 bool SetupWindow (); 00064 00065 void SetSoftwareL (iAwsSource *source); 00066 void SetOpenGLL (iAwsSource *source); 00067 static void SetSoftware (void* vidprefs, iAwsSource *source); 00068 static void SetOpenGL (void* vidprefs, iAwsSource *source); 00069 00070 public: 00074 csVideoPreferences (); 00075 00079 ~csVideoPreferences (); 00080 00093 bool Setup (iObjectRegistry* object_reg); 00094 00099 bool HandleEvent (iEvent &Event); 00100 00104 void CleanUp (); 00105 00111 void SelectMode (); 00112 }; 00113 00114 #endif // __CSVIDPREFS_H__ 00115 Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000 |