]> OCCT Git - occt.git/commit
0032779: Visualization, TKOpenGl - support using a wide color window buffer format...
authorkgv <kgv@opencascade.com>
Fri, 14 Jan 2022 22:39:19 +0000 (01:39 +0300)
committersmoskvin <smoskvin@opencascade.com>
Mon, 17 Jan 2022 17:03:28 +0000 (20:03 +0300)
commitddb9ed4810c4b409992d6e73107e4067ad7e0015
tree7d1c98a313c9012666d65d63a0f3194c2473e633
parent7073768338a5bb3a2c7385b43f9a599e3d7ec5a1
0032779: Visualization, TKOpenGl - support using a wide color window buffer format (10bit per component / 30bit RGB)

Added new flag OpenGl_Caps::buffersDeepColor disabled by default.
OpenGl_Window now tries to find a RGB10_A2 pixel format using wglChoosePixelFormatARB().
OpenGl_TextureFormat::FindSizedFormat() - added handling of GL_RGB10_A2 internal format.
OpenGl_View::SetWindow() now selects preferred FBO color format basing on parameters.
OpenGl_Context::DiagnosticInformation()/OpenGl_View::DiagnosticInformation() now include
information about window pixel format / FBO texture format.
13 files changed:
src/OpenGl/OpenGl_Caps.cxx
src/OpenGl/OpenGl_Caps.hxx
src/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_Context.hxx
src/OpenGl/OpenGl_DepthPeeling.cxx
src/OpenGl/OpenGl_FrameBuffer.cxx
src/OpenGl/OpenGl_FrameBuffer.hxx
src/OpenGl/OpenGl_GraphicDriver.cxx
src/OpenGl/OpenGl_ShadowMap.cxx
src/OpenGl/OpenGl_TextureFormat.cxx
src/OpenGl/OpenGl_View.cxx
src/OpenGl/OpenGl_Window.cxx
src/OpenGlTest/OpenGlTest_Commands.cxx