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);
4 byte pixel format, 1 byte for red, 1 byte for green, 1 byte for blue, and one byte for alpha ...
void setVisible(bool visible)
Set the visibility state.
bool mUsingExternalViewController
Is this using an external view controller handle?
PixelFormat
The pixel format used for images, textures, and render surfaces.
bool mIsExternal
Is this using an external window handle?
EAGLES2Context * mContext
void switchFullScreen(bool fullscreen)
EAGL2Support * mGLSupport
bool requiresTextureFlipping() const
PixelFormat suggestPixelFormat() const
Override since windows don't usually have alpha.
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
bool isVisible(void) const
Indicates whether the window is visible (not minimized or obscured)
Manages the target rendering window.
bool isClosed(void) const
Indicates whether the window has been closed by the user.
bool mIsContentScalingSupported
void setClosed(bool closed)
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
bool mUsingExternalView
Is this using an external view handle?
float mContentScalingFactor