0027787: Visualization, TKOpenGl - Optimize rendering by additional check whether...
authordbp <dbp@opencascade.com>
Thu, 18 Aug 2016 16:41:05 +0000 (19:41 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 25 Aug 2016 08:17:45 +0000 (11:17 +0300)
commit1a7ece8f23b613de8bdca410c031dcb898dd1fc8
treeb4ef7fde0e364073ca10cd6e633daeb6998e02c2
parentafa6834bcd066ee1cfa95b18cae3bed560443092
0027787: Visualization, TKOpenGl - Optimize rendering by additional check whether the object is fully clipped or not

OpenGl_Structure::Render() now checks if structure is entirely clipped to skip rendering at all,
or entirely NOT clipped to disable clipping / capping plane.

OpenGl_ShaderManager now defines dedicated GLSL programs for one and two clipping planes
to optimize rendering on slow hardware.
src/NCollection/NCollection_Vec4.hxx
src/OpenGl/OpenGl_Clipping.cxx
src/OpenGl/OpenGl_Clipping.hxx
src/OpenGl/OpenGl_SetOfShaderPrograms.hxx
src/OpenGl/OpenGl_ShaderManager.cxx
src/OpenGl/OpenGl_ShaderManager.hxx
src/OpenGl/OpenGl_Structure.cxx