Crazy Eddie's GUI System  ${CEGUI_VERSION}
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  IrrlichtGuiRendererType,
43  DirectFBGuiRendererType,
44  RendererTypeCount,
45  InvalidGuiRendererType
46 };
47 
48 
57 {
58 public:
64 
65 
70  virtual ~CEGuiRendererSelector();
71 
72 
80  virtual bool invokeDialog() = 0;
81 
82 
90  CEGuiRendererType getSelectedRendererType();
91 
92 
105  void setRendererAvailability(CEGuiRendererType rendererType, bool available = true);
106 
107 
108 protected:
109  CEGuiRendererType d_lastSelected;
110  bool d_rendererAvailability[RendererTypeCount];
111 };
112 
113 #endif // end of guard _CEGuiRendererSelector_h_
Base class for the renderer selection dialog class.
Definition: CEGuiRendererSelector.h:56
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:110
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:109