]> OCCT Git - occt-copy.git/commit
0029528: Visualization, TKOpenGl - allow defining sRGB textures
authorkgv <kgv@opencascade.com>
Thu, 29 Aug 2019 08:04:56 +0000 (11:04 +0300)
committerkgv <kgv@opencascade.com>
Fri, 20 Sep 2019 10:19:39 +0000 (13:19 +0300)
commit341e87e4aed8955afc2c73fbab431ff6a11a787d
treedd85ea4e1ae369dfee9e0d701742c2d9f720148a
parent8f7b001d687224c2ac900c342bb325718ce4fe14
0029528: Visualization, TKOpenGl - allow defining sRGB textures

Quantity_Color definition has been modified to store RGB components
in linear color space within Quantity_TOC_RGB type.
Standard colors defined by Quantity_NameOfColor enumeration has been updated accordingly.
New Quantity_TOC_sRGB type has been introduced to handle RGB components in non-linear sRGB color space.

OpenGl_TextureFormat class definition has been moved to dedicated files.
New method OpenGl_TextureFormat::FindFormat() replaces OpenGl_Texture::GetDataFormat().
New method OpenGl_TextureFormat::FindSizedFormat() replaces OpenGl_FrameBuffer::getColorDataFormat()
and OpenGl_FrameBuffer::getDepthDataFormat().

Graphic3d_TextureRoot::IsColorMap() - introduced new property defining
if RGB(A)8 image formats should be loaded as sRGB(A) textures or as data RGB(A) textures.
OpenGl_Texture initialization methods have been extended with new theIsColorMap argument.

vreadpixel - added argument -sRGB printing color in sRGB color space.
69 files changed:
dox/dev_guides/upgrade/upgrade.md
src/D3DHost/D3DHost_FrameBuffer.cxx
src/Graphic3d/Graphic3d_MaterialAspect.cxx
src/Graphic3d/Graphic3d_TextureMap.hxx
src/Graphic3d/Graphic3d_TextureRoot.cxx
src/Graphic3d/Graphic3d_TextureRoot.hxx
src/Graphic3d/Graphic3d_TypeOfLimit.hxx
src/IGESCAFControl/IGESCAFControl_Reader.cxx
src/IGESCAFControl/IGESCAFControl_Writer.cxx
src/MeshVS/MeshVS_NodalColorPrsBuilder.cxx
src/MeshVS/MeshVS_TwoColors.cxx
src/OpenGl/FILES
src/OpenGl/OpenGl_AspectsSprite.cxx
src/OpenGl/OpenGl_BackgroundArray.cxx
src/OpenGl/OpenGl_BackgroundArray.hxx
src/OpenGl/OpenGl_Caps.cxx
src/OpenGl/OpenGl_Caps.hxx
src/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_Context.hxx
src/OpenGl/OpenGl_Font.cxx
src/OpenGl/OpenGl_FrameBuffer.cxx
src/OpenGl/OpenGl_FrameBuffer.hxx
src/OpenGl/OpenGl_GraphicDriver.cxx
src/OpenGl/OpenGl_Material.hxx
src/OpenGl/OpenGl_ShaderManager.cxx
src/OpenGl/OpenGl_ShaderManager.hxx
src/OpenGl/OpenGl_Texture.cxx
src/OpenGl/OpenGl_Texture.hxx
src/OpenGl/OpenGl_TextureFormat.cxx [new file with mode: 0644]
src/OpenGl/OpenGl_TextureFormat.hxx [new file with mode: 0644]
src/OpenGl/OpenGl_TileSampler.cxx
src/OpenGl/OpenGl_View.cxx
src/OpenGl/OpenGl_View.hxx
src/OpenGl/OpenGl_View_Raytrace.cxx
src/OpenGl/OpenGl_View_Redraw.cxx
src/OpenGl/OpenGl_Window.cxx
src/OpenGl/OpenGl_Workspace.cxx
src/QABugs/QABugs_17.cxx
src/QABugs/QABugs_19.cxx
src/Quantity/Quantity_Color.cxx
src/Quantity/Quantity_Color.hxx
src/Quantity/Quantity_ColorRGBA.cxx
src/Quantity/Quantity_ColorRGBA.hxx
src/Quantity/Quantity_ColorTable.pxx
src/Quantity/Quantity_TypeOfColor.hxx
src/RWGltf/RWGltf_GltfJsonParser.cxx
src/RWGltf/RWGltf_MaterialCommon.hxx
src/RWObj/RWObj_Material.hxx
src/RWObj/RWObj_MtlReader.cxx
src/STEPCAFControl/STEPCAFControl_Writer.cxx
src/STEPConstruct/STEPConstruct_Styles.cxx
src/Shaders/Display.fs
src/Shaders/PathtraceBase.fs
src/Shaders/Shaders_Display_fs.pxx
src/Shaders/Shaders_PathtraceBase_fs.pxx
src/StdSelect/StdSelect_ViewerSelector3d.cxx
src/ViewerTest/ViewerTest.cxx
src/ViewerTest/ViewerTest_OpenGlCommands.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
src/Vrml/Vrml_DirectionalLight.cxx
src/Vrml/Vrml_Material.cxx
src/Vrml/Vrml_PointLight.cxx
src/Vrml/Vrml_SpotLight.cxx
src/VrmlAPI/VrmlAPI_Writer.cxx
src/VrmlData/VrmlData_Color.hxx
src/VrmlData/VrmlData_Material.cxx
src/VrmlData/VrmlData_ShapeConvert.cxx
tests/v3d/glsl/texture_trsf
tests/v3d/glsl/texture_trsf2