29 #ifndef __EAGL2Window_H__
30 #define __EAGL2Window_H__
42 typedef UIWindow *NativeWindowType;
69 NativeWindowType mWindow;
75 void getLeftAndTopFromNativeWindow(
int & left,
int & top,
uint width,
uint height);
77 void createNativeWindow(
int &left,
int &top,
uint &width,
uint &height,
String &title);
78 void reposition(
int left,
int top);
79 void resize(
unsigned int width,
unsigned int height);
80 void windowMovedOrResized();
81 virtual void _beginUpdate();
87 void create(
const String& name,
unsigned int width,
unsigned int height,
90 virtual void setFullscreen(
bool fullscreen,
uint width,
uint height);
98 void copyContentsToMemory(
const PixelBox &dst, FrameBuffer buffer);
110 virtual void getCustomAttribute(
const String& name,
void* pData);
Manages the target rendering window.
bool mIsExternal
Is this using an external window handle?
bool isVisible(void) const
Indicates whether the window is visible (not minimized or obscured)
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
PixelFormat suggestPixelFormat() const
Override since windows don't usually have alpha.
EAGLES2Context * mContext
bool mUsingExternalView
Is this using an external view handle?
4 byte pixel format, 1 byte for red, 1 byte for green, 1 byte for blue, and one byte for alpha ...
bool isClosed(void) const
Indicates whether the window has been closed by the user.
PixelFormat
The pixel format used for images, textures, and render surfaces.
bool mUsingExternalViewController
Is this using an external view controller handle?
bool mIsContentScalingSupported
float mContentScalingFactor
EAGL2Support * mGLSupport
void setVisible(bool visible)
Set the visibility state.
void setClosed(bool closed)
void switchFullScreen(bool fullscreen)
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
bool requiresTextureFlipping() const