1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0026025: Visualization, TKOpenGl - stereoscopic output does not work

OpenGl_View::Render() - pass target FBO as parameter.
OpenGl_Context - revise Read/Write buffers management logic, taking into account FBOs.

Graphic3d_Camera::UpdateProjection() - setup LProjection and RProjection
the same as MProjection in case of Projection_MonoLeftEye/Projection_MonoRightEye
for API consistency.
This commit is contained in:
kgv
2015-04-15 16:25:38 +03:00
committed by bugmaster
parent b85b0b0731
commit 38a0206f60
17 changed files with 702 additions and 395 deletions

View File

@@ -99,6 +99,23 @@ Standard_Boolean OpenGl_FrameBuffer::Init (const Handle(OpenGl_Context)& theGlCo
return Standard_True;
}
// =======================================================================
// function : Init
// purpose :
// =======================================================================
Standard_Boolean OpenGl_FrameBuffer::InitLazy (const Handle(OpenGl_Context)& theGlContext,
const GLsizei theViewportSizeX,
const GLsizei theViewportSizeY)
{
if (myVPSizeX == theViewportSizeX
&& myVPSizeY == theViewportSizeY)
{
return IsValid();
}
return Init (theGlContext, theViewportSizeX, theViewportSizeY);
}
// =======================================================================
// function : InitWithRB
// purpose :