ANSYS::AVZ::GLTFWriter::Image Class Reference
Last update: 16.07.2025#include <GLTFWriter.h>
Inheritance diagram for ANSYS::AVZ::GLTFWriter::Image:

Static Public Member Functions | |
| static Image * | Create (GLTF *gltf, const char *filePath, bool generateMipmap=false, bool isProxy=false) |
| static Image * | Create (GLTF *gltf, unsigned int dataSize, const unsigned char *data, bool generateMipmap=false, bool isProxy=false) |
Detailed Description
Every texture must have a corresponding image.
- Examples
- Test014.cpp.
Definition at line 26 of file GLTFImage.h.
Constructor & Destructor Documentation
◆ ~Image()
|
inlineprotectedvirtual |
Definition at line 29 of file GLTFImage.h.
Member Function Documentation
◆ Create() [1/2]
|
static |
Creates a image from a "PNG" file.
- Returns
- Image object. Do not delete this pointer.
- Parameters
-
[in] gltf GLTF object. [in] filePath Path to local file system "PNG" file. [in] generateMipmap Optional, flag indicating whether or not to generate mipmaps. [in] isProxy Optional, flag indicating whether this is a proxy image for a scene. The internal file name will end with "Proxy.png" for easier external tool processing.
◆ Create() [2/2]
|
static |
Creates a image from in memory "PNG" data.
- Returns
- Image object. Do not delete this pointer.
- Parameters
-
[in] gltf GLTF object. [in] dataSize Size of PNG data in bytes. [in] data Memory mapped PNG file. [in] generateMipmap Optional, flag indicating whether or not to generate mipmaps. [in] isProxy Optional, flag indicating whether this is a proxy image for a scene. The internal file name will end with "Proxy.png" for easier external tool processing.
The documentation for this class was generated from the following file:
- D:/Product-src/webgl_viewer/gltfwriterlib/include/GLTFImage.h