Crazy Eddie's GUI System  ${CEGUI_VERSION}
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
CEGuiRendererSelector.h
1 /***********************************************************************
2  created: 24/9/2004
3  author: Paul D Turner
4 *************************************************************************/
5 /***************************************************************************
6  * Copyright (C) 2004 - 2008 Paul D Turner & The CEGUI Development Team
7  *
8  * Permission is hereby granted, free of charge, to any person obtaining
9  * a copy of this software and associated documentation files (the
10  * "Software"), to deal in the Software without restriction, including
11  * without limitation the rights to use, copy, modify, merge, publish,
12  * distribute, sublicense, and/or sell copies of the Software, and to
13  * permit persons to whom the Software is furnished to do so, subject to
14  * the following conditions:
15  *
16  * The above copyright notice and this permission notice shall be
17  * included in all copies or substantial portions of the Software.
18  *
19  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22  * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
23  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
24  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25  * OTHER DEALINGS IN THE SOFTWARE.
26  ***************************************************************************/
27 #ifndef _CEGuiRendererSelector_h_
28 #define _CEGuiRendererSelector_h_
29 
34 enum CEGuiRendererType
35 {
36  OgreGuiRendererType,
37  Direct3D9GuiRendererType,
38  Direct3D10GuiRendererType,
39  Direct3D11GuiRendererType,
40  OpenGLGuiRendererType,
41  OpenGL3GuiRendererType,
42  OpenglEs2GuiRendererType,
43  IrrlichtGuiRendererType,
44  DirectFBGuiRendererType,
45  RendererTypeCount,
46  InvalidGuiRendererType
47 };
48 
49 
58 {
59 public:
65 
66 
71  virtual ~CEGuiRendererSelector();
72 
73 
81  virtual bool invokeDialog() = 0;
82 
83 
91  CEGuiRendererType getSelectedRendererType();
92 
93 
106  void setRendererAvailability(CEGuiRendererType rendererType, bool available = true);
107 
108 
109 protected:
110  CEGuiRendererType d_lastSelected;
111  bool d_rendererAvailability[RendererTypeCount];
112 };
113 
114 #endif // end of guard _CEGuiRendererSelector_h_
Base class for the renderer selection dialog class.
Definition: CEGuiRendererSelector.h:57
void setRendererAvailability(CEGuiRendererType rendererType, bool available=true)
Set whether or not a specific renderer type will be available for selection from the dialog the next ...
Definition: CEGuiRendererSelector.cpp:66
bool d_rendererAvailability[RendererTypeCount]
Holds availability of renderer types.
Definition: CEGuiRendererSelector.h:111
virtual bool invokeDialog()=0
Displays a dialog allowing the user to select a renderer to be used.
virtual ~CEGuiRendererSelector()
Destructor.
Definition: CEGuiRendererSelector.cpp:48
CEGuiRendererType getSelectedRendererType()
Return the CEGuiRendererType value of the renderer most recently selected by the user.
Definition: CEGuiRendererSelector.cpp:56
CEGuiRendererSelector()
Constructor.
Definition: CEGuiRendererSelector.cpp:33
CEGuiRendererType d_lastSelected
Holds the last selected renderer type.
Definition: CEGuiRendererSelector.h:110