opengl renderer: create rendering subwindow

The application provides the window handle to which the
OpenglRenderer should render to however only a sub-region of
this window needs to be rendered. This change adds this functionality
by creating a native child subwindow into which rendering will happen.
This commit is contained in:
Amit Feller
2011-06-27 13:23:55 +03:00
committed by Guy Zadickario
parent 31580f42b1
commit 1d3f5f58ce
10 changed files with 223 additions and 5 deletions

View File

@@ -51,6 +51,7 @@ public:
static bool initialize(FBNativeWindowType p_window,
int x, int y,
int width, int height);
static void finalize();
static FrameBuffer *getFB() { return s_theFrameBuffer; }
const FrameBufferCaps &getCaps() const { return m_caps; }
@@ -107,5 +108,7 @@ private:
EGLContext m_prevContext;
EGLSurface m_prevReadSurf;
EGLSurface m_prevDrawSurf;
EGLNativeWindowType m_subWin;
EGLNativeDisplayType m_subWinDisplay;
};
#endif