29 #ifndef __EAGL2Window_H__
30 #define __EAGL2Window_H__
35 #import <UIKit/UIKit.h>
43 typedef UIWindow *NativeWindowType;
71 NativeWindowType mWindow;
77 void getLeftAndTopFromNativeWindow(
int & left,
int & top,
uint width,
uint height);
79 void createNativeWindow(
int &left,
int &top,
uint &width,
uint &height,
String &title);
80 void reposition(
int left,
int top);
81 void resize(
unsigned int width,
unsigned int height);
82 void windowMovedOrResized();
83 virtual void _beginUpdate();
89 void create(
const String& name,
unsigned int width,
unsigned int height,
92 virtual void setFullscreen(
bool fullscreen,
uint width,
uint height);
99 void swapBuffers(
bool waitForVSync);
100 void copyContentsToMemory(
const PixelBox &dst, FrameBuffer buffer);
111 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)
EAGLES2Context * mContext
bool mUsingExternalView
Is this using an external view handle?
bool isClosed(void) const
Indicates whether the window has been closed by the user.
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