Go to the documentation of this file.
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);
@ PF_BYTE_RGBA
4 byte pixel format, 1 byte for red, 1 byte for green, 1 byte for blue, and one byte for alpha
Manages the target rendering window.
float mContentScalingFactor
bool isClosed(void) const
Indicates whether the window has been closed by the user.
EAGL2Support * mGLSupport
bool mUsingExternalViewController
Is this using an external view controller handle?
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)
PixelFormat
The pixel format used for images, textures, and render surfaces.
void setVisible(bool visible)
Set the visibility state.
void setClosed(bool closed)
bool mIsExternal
Is this using an external window handle?
bool mIsContentScalingSupported
bool mUsingExternalView
Is this using an external view handle?
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
bool requiresTextureFlipping() const
void switchFullScreen(bool fullscreen)
EAGLES2Context * mContext
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15