0026711: Visualization, TKOpenGl - support creation of multisampling off-screen FBOs
authorkgv <kgv@opencascade.com>
Wed, 21 Oct 2015 16:06:02 +0000 (19:06 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 29 Oct 2015 10:28:11 +0000 (13:28 +0300)
commit3c4b62a436d2247552e746791bfc9a8e5510b8fd
tree3cf7c299d17b0640eb9001e02db6f21b5e0e83dc
parent9535c4be4694bf35a3f0e9c0bb0eac080a868dd7
0026711: Visualization, TKOpenGl - support creation of multisampling off-screen FBOs

OpenGl_Texture::Init2DMultisample() - new method to initialize multisampled texture.
Graphic3d_RenderingParams::NbMsaaSamples - add option defining MSAA samples number.

RayTracing will keep using FBO without MSAA, however it is possible to combine
MSAA for rasterization and FSAA for RayTracing.

OpenGl_FrameBuffer constructor has been changed to do not take arguments.
OpenGl_FrameBuffer::Init() method has been extended with mandatory parameters
defining Color and Depth attachment formats
and optional parameter defining number of MSAA parameters.

Draw Harness, add option -msaa to vrenderparams.
17 files changed:
src/Graphic3d/Graphic3d_RenderingParams.hxx
src/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_Context.hxx
src/OpenGl/OpenGl_FrameBuffer.cxx
src/OpenGl/OpenGl_FrameBuffer.hxx
src/OpenGl/OpenGl_GlFunctions.hxx
src/OpenGl/OpenGl_Texture.cxx
src/OpenGl/OpenGl_Texture.hxx
src/OpenGl/OpenGl_View.cxx
src/OpenGl/OpenGl_View.hxx
src/OpenGl/OpenGl_View_Print.cxx
src/OpenGl/OpenGl_View_Raytrace.cxx
src/OpenGl/OpenGl_View_Redraw.cxx
src/OpenGl/OpenGl_Window_1.mm
src/OpenGl/OpenGl_Workspace.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
tests/v3d/glsl/msaa [new file with mode: 0644]