0026149: Visualization - depth buffer should not be written within Z-layers without...
authorisz <isz@opencascade.com>
Wed, 3 Jun 2015 06:58:10 +0000 (09:58 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 4 Jun 2015 11:42:09 +0000 (14:42 +0300)
commiteae454e3307922b27993f2246c3e16ef6bbee8f5
tree807845e82322dda025d56ca151c8414830ae7a88
parent031224c91c92a93a204dba187a45464210f19225
0026149: Visualization - depth buffer should not be written within Z-layers without Graphic3d_ZLayerDepthWrite flag

OpenGl_Workspace::updateMaterial() - do not activate writing into Depth buffer without Graphic3d_ZLayerDepthWrite flag.
Add method OpenGl_Workspace::UseDepthWrite() to track glDepthMask() state.

Drop the following outdated API methods conflicting with Z-layers API:
- V3d_View::EnableDepthTest(), V3d_View::IsDepthTestEnabled()
- Visual3d_View::ZBufferIsActivated(), Visual3d_View::SetZBufferActivity(), Visual3d_View::EnableDepthTest(), Visual3d_View::IsDepthTestEnabled()
- Graphic3d_GraphicDriver::SetDepthTestEnabled(), Graphic3d_GraphicDriver::IsDepthTestEnabled()

Activate Z-buffer by default, and manage it state only by Z-layer flags.
17 files changed:
src/Graphic3d/Graphic3d_CView.hxx
src/Graphic3d/Graphic3d_GraphicDriver.cdl
src/OpenGl/OpenGl_GraphicDriver.hxx
src/OpenGl/OpenGl_GraphicDriver_7.cxx
src/OpenGl/OpenGl_GraphicDriver_713.cxx
src/OpenGl/OpenGl_Layer.cxx
src/OpenGl/OpenGl_Text.cxx
src/OpenGl/OpenGl_View_2.cxx
src/OpenGl/OpenGl_Workspace.cxx
src/OpenGl/OpenGl_Workspace.hxx
src/OpenGl/OpenGl_Workspace_5.cxx
src/V3d/V3d_View.cdl
src/V3d/V3d_View_5.cxx
src/Visual3d/Visual3d_View.cdl
src/Visual3d/Visual3d_View.cxx
src/Visual3d/Visual3d_ViewManager.cxx
tests/bugs/vis/bug26149 [new file with mode: 0644]