ANSYS::Nexus::GLTFWriter::Image Class Reference
Last update: 17.04.2023Images define texture data. More...
#include <GLTFWriter.h>
Inheritance diagram for ANSYS::Nexus::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
Images define texture data.
Every texture must have a corresponding image.
Definition at line 26 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.
- Examples
- Test014.cpp.
◆ 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:/ANSYSDev/NoBackup/branches/EnSight-Second-Coming/webgl_viewer/gltfwriterlib/include/GLTFImage.h