29 #ifndef __Win32Window_H__ 30 #define __Win32Window_H__ 39 Win32Window(Win32GLSupport &glsupport);
42 void create(
const String& name,
unsigned int width,
unsigned int height,
44 void setFullscreen(
bool fullScreen,
unsigned int width,
unsigned int height);
46 bool isActive(
void)
const;
47 bool isVisible()
const;
49 void setHidden(
bool hidden);
50 void setVSyncEnabled(
bool vsync);
51 bool isVSyncEnabled()
const;
52 void setVSyncInterval(
unsigned int interval);
53 unsigned int getVSyncInterval()
const;
54 bool isClosed(
void)
const;
55 void reposition(
int left,
int top);
56 void resize(
unsigned int width,
unsigned int height);
68 virtual void windowMovedOrResized(
void);
70 void getCustomAttribute(
const String& name,
void* pData );
74 virtual void setActive(
bool state );
76 void adjustWindow(
unsigned int clientWidth,
unsigned int clientHeight,
77 unsigned int* winWidth,
unsigned int* winHeight);
82 void updateWindowRect();
85 DWORD
getWindowStyle(
bool fullScreen)
const {
if (fullScreen)
return mFullscreenWinStyle;
return mWindowedWinStyle; }
94 bool mIsExternalGLControl;
95 bool mIsExternalGLContext;
100 unsigned int mVSyncInterval;
101 int mDisplayFrequency;
103 DWORD mWindowedWinStyle;
104 DWORD mFullscreenWinStyle;
DWORD getWindowStyle(bool fullScreen) const
Return the target window style depending on the fullscreen parameter.
bool requiresTextureFlipping() const
bool isHidden() const
Indicates whether the window was set to hidden (not displayed)
#define _OgreGL3PlusExport
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info...
HWND getWindowHandle() const
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.