26 #ifndef __RenderWindow_H__
27 #define __RenderWindow_H__
93 virtual void create(
const String& name,
unsigned int width,
unsigned int height,
103 virtual void setFullscreen(
bool fullScreen,
unsigned int width,
unsigned int height)
104 { (void)fullScreen; (void)width; (void)height; }
108 virtual void destroy(
void) = 0;
112 virtual void resize(
unsigned int width,
unsigned int height) = 0;
122 virtual void reposition(
int left,
int top) = 0;
135 virtual bool isHidden(
void)
const {
return false; }
170 virtual bool isActive(
void)
const {
return mActive && isVisible(); }
174 virtual bool isClosed(
void)
const = 0;
182 virtual bool isPrimary(
void)
const;
186 virtual bool isFullScreen(
void)
const;
191 virtual void getMetrics(
unsigned int& width,
unsigned int& height,
unsigned int& colourDepth,
192 int& left,
int& top);
199 bool isDeactivatedOnFocusChange()
const;
205 void setDeactivateOnFocusChange(
bool deactivate);
Manages the target rendering window.
A 'canvas' which can receive the results of a rendering operation.
virtual bool isHidden(void) const
Indicates whether the window was set to hidden (not displayed)
virtual bool isVSyncEnabled() const
Indicates whether vertical sync is activated for the window.
The root class of the Ogre system.
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
bool mAutoDeactivatedOnFocusChange
virtual void windowMovedOrResized()
Notify that the window has been resized.
PixelFormat suggestPixelFormat() const
Override since windows don't usually have alpha.
virtual bool isActive(void) const
Overridden from RenderTarget, flags invisible windows as inactive.
void _setPrimary()
Indicates that this is the primary window.
virtual void setHidden(bool hidden)
Hide (or show) the window.
virtual void setVSyncInterval(unsigned int interval)
Set the vertical sync interval.
3 byte pixel format, 1 byte for red, 1 byte for green, 1 byte for blue
virtual void setFullscreen(bool fullScreen, unsigned int width, unsigned int height)
Alter fullscreen mode options.
PixelFormat
The pixel format used for images, textures, and render surfaces.
virtual unsigned int getVSyncInterval() const
Returns the vertical sync interval.
virtual void setVSyncEnabled(bool vsync)
Enable or disable vertical sync for the RenderWindow.
virtual void setVisible(bool visible)
Set the visibility state.
virtual bool isVisible(void) const
Indicates whether the window is visible (not minimized or obscured)