30 #if !defined(ANDROID) && !defined(CONFIGURATOR_VIDEO_H)
31 #define CONFIGURATOR_VIDEO_H
41 Configurator_Video & operator=(
const Configurator_Video &);
46 Check_State operator=(
const Check_State &);
48 enum Code {CODE_IGNORE, CODE_SAVE, CODE_REVERT};
51 Accept_Button(
const Accept_Button &);
52 Accept_Button operator=(
const Accept_Button &);
55 Accept_Button(Check_State &check_video,
const std::pair<Point2f, Point2f> &virtual_screen);
60 Check_State &m_check_video;
70 #if SDL_VERSION_ATLEAST(2,0,0)
73 void on_video_resize(
const SDL_ResizeEvent &event);
78 Accept_Button m_accept_button;
79 int m_seconds_remaining;
88 class ZENI_REST_DLL Check_Box_Element :
public Check_Box {
89 Check_Box_Element(
const Check_Box_Element &);
90 Check_Box_Element & operator=(
const Check_Box_Element &);
100 void render_impl()
const;
106 class ZENI_REST_DLL Slider_Element :
public Slider_Int {
107 Slider_Element(
const Slider_Element &);
108 Slider_Element & operator=(
const Slider_Element &);
113 const std::pair<int, int> &
range,
119 void render_impl()
const;
126 class ZENI_REST_DLL Text_Element :
public Text_Box {
127 Text_Element(
const Text_Element &);
128 Text_Element & operator=(
const Text_Element &);
131 Text_Element(
const XML_Element &element,
133 const Point2f &upper_left,
134 const Point2f &lower_right);
138 void render_impl()
const;
141 XML_Element m_element;
144 class ZENI_REST_DLL Selector_Element :
public Selector {
145 Selector_Element(
const Selector_Element &);
146 Selector_Element & operator=(
const Selector_Element &);
149 Selector_Element(
const XML_Element &element,
150 const Point2f &upper_left,
151 const Point2f &lower_right,
152 const Point2f &expanded_upper_left,
153 const Point2f &expanded_lower_right);
155 void add_entry(
const String &
option,
const String &save_as);
157 size_t num_entries()
const;
159 void on_accept(
const String &
option);
162 XML_Element m_element;
164 #pragma warning( push )
165 #pragma warning( disable : 4251 )
167 std::map<String, String> m_save_as;
169 #pragma warning( pop )
173 class ZENI_REST_DLL Resolution_Element :
public Selector {
174 Resolution_Element(
const Resolution_Element &);
175 Resolution_Element & operator=(
const Resolution_Element &);
178 Resolution_Element(
const XML_Element &element,
179 const Point2f &upper_left,
180 const Point2f &lower_right,
181 const Point2f &expanded_upper_left,
182 const Point2f &expanded_lower_right);
184 void on_accept(
const String &
option);
187 XML_Element m_element;
190 class ZENI_REST_DLL Custom_Resolution_Box :
public Check_Box {
191 Custom_Resolution_Box(
const Custom_Resolution_Box &);
192 Custom_Resolution_Box & operator=(
const Custom_Resolution_Box &);
195 Custom_Resolution_Box(Configurator_Video &configurator,
197 const Point2f &upper_left,
204 void render_impl()
const;
207 Configurator_Video &m_configurator;
210 class ZENI_REST_DLL Apply_Button :
public Text_Button {
211 Apply_Button(
const Apply_Button &);
212 Apply_Button & operator=(
const Apply_Button &);
215 Apply_Button(XML_Document &
file,
216 const Point2f &upper_left,
217 const Point2f &lower_right);
222 XML_Document * m_file;
225 class ZENI_REST_DLL Cancel_Button :
public Text_Button {
226 Cancel_Button(
const Cancel_Button &);
227 Cancel_Button & operator=(
const Cancel_Button &);
230 Cancel_Button(
const Point2f &upper_left,
231 const Point2f &lower_right);
237 Configurator_Video();
238 ~Configurator_Video();
248 XML_Element m_zenilib;
Slider_Element anisotropy
Check_Box_Element bilinear_filtering
Custom_Resolution_Box custom_resolution
static void render(const Vertex_Buffer_Macrorenderer ¯orenderer, std::vector< Vertex_Buffer::Vertex_Buffer_Range * > &descriptors)
Check_Box_Element full_screen
EGLSurface EGLint EGLint EGLint EGLint height
Slider_Element multisampling
Text_Element custom_height
Keyboard button event structure (event.key.*)
Check_Box_Element vertical_sync
Window state change event data (event.window.*)
A node in an XML tree, possibly containing useful data.
EGLSurface EGLint void ** value
A 2D Point represented with floats.
Text_Element custom_width
Resolution_Element resolution
Check_Box_Element mipmapping