]> OCCT Git - occt.git/commit
0032862: Visualization, Graphic3d_TextureMap - add 3D texture definition
authorkgv <kgv@opencascade.com>
Wed, 2 Mar 2022 12:21:22 +0000 (15:21 +0300)
committersmoskvin <smoskvin@opencascade.com>
Sat, 5 Mar 2022 14:31:39 +0000 (17:31 +0300)
commit633084b80933b05fe384fc581ed2e7f7d06c0fe7
treecfcff4ee3fad8ff46e28d4366e81d009488be40f
parenta9e5f65041b05e43937095c82ab180fccd544579
0032862: Visualization, Graphic3d_TextureMap - add 3D texture definition

Image_PixMap has been extended to support definition of 3D bitmap (as an array of 2D slices).

Graphic3d_TypeOfTexture enumeration values have been renamed to include full enum prefix.
Added Graphic3d_TypeOfTexture_3D redirecting to GL_TEXTURE_3D.
OpenGl_Texture::Init() has been extended to allow initialization of 3D texture.

Graphic3d_Texture2Dmanual merged into Graphic3d_Texture2D and marked as deprecated alias.
Graphic3d_TOT_2D_MIPMAP has been deprecated in favor of dedicated Graphic3d_TextureRoot::SetMipMaps().

Added Graphic3d_Texture3D class.
vtexture - added argument -3d for uploading 3D texture.
47 files changed:
samples/OCCTOverview/code/Sample2D_Image.cxx
src/AIS/AIS_TexturedShape.cxx
src/AIS/AIS_TexturedShape.hxx
src/AIS/AIS_XRTrackedDevice.cxx
src/D3DHost/D3DHost_FrameBuffer.cxx
src/Graphic3d/FILES
src/Graphic3d/Graphic3d_CubeMap.cxx
src/Graphic3d/Graphic3d_CubeMap.hxx
src/Graphic3d/Graphic3d_MediaTexture.cxx
src/Graphic3d/Graphic3d_Texture1Dmanual.cxx
src/Graphic3d/Graphic3d_Texture1Dmanual.hxx
src/Graphic3d/Graphic3d_Texture1Dsegment.cxx
src/Graphic3d/Graphic3d_Texture2D.cxx
src/Graphic3d/Graphic3d_Texture2D.hxx
src/Graphic3d/Graphic3d_Texture2Dmanual.cxx [deleted file]
src/Graphic3d/Graphic3d_Texture2Dmanual.hxx
src/Graphic3d/Graphic3d_Texture2Dplane.cxx
src/Graphic3d/Graphic3d_Texture3D.cxx [new file with mode: 0644]
src/Graphic3d/Graphic3d_Texture3D.hxx [new file with mode: 0644]
src/Graphic3d/Graphic3d_TextureEnv.cxx
src/Graphic3d/Graphic3d_TextureRoot.cxx
src/Graphic3d/Graphic3d_TextureRoot.hxx
src/Graphic3d/Graphic3d_TypeOfTexture.hxx
src/Image/Image_PixMap.cxx
src/Image/Image_PixMap.hxx
src/Image/Image_PixMapData.hxx
src/MeshVS/MeshVS_NodalColorPrsBuilder.cxx
src/OpenGl/OpenGl_AspectsSprite.cxx
src/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_Font.cxx
src/OpenGl/OpenGl_FrameBuffer.cxx
src/OpenGl/OpenGl_PBREnvironment.cxx
src/OpenGl/OpenGl_Sampler.cxx
src/OpenGl/OpenGl_Texture.cxx
src/OpenGl/OpenGl_Texture.hxx
src/OpenGl/OpenGl_TileSampler.cxx
src/OpenGl/OpenGl_View.cxx
src/OpenGl/OpenGl_View_Raytrace.cxx
src/QABugs/QABugs_1.cxx
src/V3d/V3d_View.cxx
src/ViewerTest/ViewerTest.cxx
src/ViewerTest/ViewerTest_OpenGlCommands.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
src/XCAFPrs/XCAFPrs_Texture.cxx
src/XCAFPrs/XCAFPrs_Texture.hxx
tests/opengl/data/textures/cubemap_jpg
tests/opengl/data/textures/texture_3d [new file with mode: 0644]