OpenGL multiple canvas support

This commit is contained in:
rextimmy 2016-12-14 22:01:18 +10:00
parent efab1299ca
commit 08c0195cba
4 changed files with 60 additions and 28 deletions

View file

@ -50,6 +50,9 @@ public:
virtual void resolveTo(GFXTextureObject* obj);
void _onAppSignal(WindowId wnd, S32 event);
// create pixel format for the window
void createPixelFormat();
private:
friend class GFXGLDevice;
@ -58,6 +61,8 @@ private:
GFXTexHandle mBackBufferColorTex, mBackBufferDepthTex;
Point2I size;
GFXDevice* mDevice;
/// Is this a secondary window
bool mSecondaryWindow;
void* mContext;
void* mFullscreenContext;
void _teardownCurrentMode();
@ -66,6 +71,7 @@ private:
void _WindowPresent();
//set this windows context to be current
void _makeContextCurrent();
};
#endif