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:
committed by
Guy Zadickario
parent
31580f42b1
commit
1d3f5f58ce
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user