30 #ifndef __EGLWindow_H__
31 #define __EGLWindow_H__
46 bool mIsExternalGLControl;
48 EGLSupport* mGLSupport;
50 NativeWindowType mWindow;
51 NativeDisplayType mNativeDisplay;
52 ::EGLDisplay mEglDisplay;
55 ::EGLConfig mEglConfig;
56 ::EGLSurface mEglSurface;
58 ::EGLSurface createSurfaceFromWindow(::EGLDisplay display, NativeWindowType win);
60 virtual void switchFullScreen(
bool fullscreen) = 0;
61 virtual EGLContext * createEGLContext()
const = 0;
62 virtual void getLeftAndTopFromNativeWindow(
int & left,
int & top,
uint width,
uint height) = 0;
64 virtual void createNativeWindow(
int &left,
int &top,
uint &width,
uint &height,
String &title ) = 0;
65 virtual void reposition(
int left,
int top) = 0;
66 virtual void resize(
unsigned int width,
unsigned int height) = 0;
67 virtual void windowMovedOrResized() = 0;
70 EGLWindow(EGLSupport* glsupport);
77 virtual void setFullscreen (
bool fullscreen,
uint width,
uint height);
79 bool isClosed(
void)
const;
80 bool isVisible(
void)
const;
81 void setVisible(
bool visible);
83 void copyContentsToMemory(
const PixelBox &dst, FrameBuffer buffer);
93 virtual void getCustomAttribute(
const String& name,
void* pData);
95 bool requiresTextureFlipping()
const;
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)