1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
kgv faff37677c 0031478: Visualization, TKOpenGl - allow uploading Cubemap in compressed DDS format when supported by GPU
Graphic3d_TextureRoot::GetCompressedImage() - added new interface for fetching compressed texture image.
Default implementation detects DDS image files using Image_DDSParser parser.

Graphic3d_TextureRoot::GetImage() has been extended with new parameter
- the list of image formats supported by OpenGL driver.
Graphic3d_TextureRoot::convertToCompatible() implicitly converts
BGRA image to RGBA on OpenGL ES, which normally does not support BGR formats.

OpenGl_Caps::isTopDownTextureUV - new property defines how application defines
UV texture coordinates in primitive arrays.
OpenGl_Context::SetTextureMatrix() compares this flag with OpenGl_Texture::IsTopDown()
and automatically flips V coordinate in case of mismatch.

OpenGl_Texture now holds exact number of mipmap levels
instead of Boolean flag indicating that they are defined.
This allows loading DDS files with incomplete mipmap level set
by setting GL_TEXTURE_MAX_LEVEL to appropriate value instead of default 1000
(causing black textures in case if mipmap levels are not defined till 1x1).

Fixed order of texture coordinates transformation within GLSL program to match FFP matrix:
Rotate -> Translate -> Scale (previously Rotation was applied afterwards).
2020-05-22 11:08:34 +03:00
..

MFC samples

  1. Contents

The directory samples/mfc/standard contains the following packages and files:

  • Numbered packages: 01_Geometry, 02_Modeling, etc. provide projects and sources of samples;
  • Files All-vc(number).sln are auxiliary utility projects depending on all other sample projects. When such project is rebuilt, all samples and mfcsample library are also rebuilt.
  • Common directory provides common source and header files for samples and dynamic-link library mfcsample.dll.
  • Data directory stores data files.
  • mfcsample directory contains project for mfcsample.dll library providing basic functionality used by all OCC samples.
  • File env.bat is called from msvc.bat.
  1. Launching Open CASCADE Technology samples:

To run the Open CASCADE Technology samples, use command:

execute run.bat [vc10|vc11|vc12|vc14] [win32|win64] [Release|Debug] [SampleName]

To run the Animation sample, use command:

execute run.bat vc10 win64 Debug Animation
  1. Modifying and rebuilding samples:

You can modify, compile and launch all sample projects in MS Visual C++ at once with command:

execute msvc.bat [vc10|vc11|vc12|vc14] [win32|win64] [Release|Debug]

To run all sample projects in MS Visual C++ at once, use command:

execute msvc.bat vc10 win64 Debug

Note: make sure that your PATH environment variable contains a directory, where msdev.exe is located.