Skip to main content

Post-processing tools 2024 R2

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()

virtual ANSYS::AVZ::GLTFWriter::Image::~Image ( )
inlineprotectedvirtual

Definition at line 29 of file GLTFImage.h.

Member Function Documentation

◆ Create() [1/2]

static Image * ANSYS::AVZ::GLTFWriter::Image::Create ( GLTF *  gltf,
const char *  filePath,
bool  generateMipmap = false,
bool  isProxy = false 
)
static

Creates a image from a "PNG" file.

Returns
Image object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]filePathPath to local file system "PNG" file.
[in]generateMipmapOptional, flag indicating whether or not to generate mipmaps.
[in]isProxyOptional, 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 Image * ANSYS::AVZ::GLTFWriter::Image::Create ( GLTF *  gltf,
unsigned int  dataSize,
const unsigned char *  data,
bool  generateMipmap = false,
bool  isProxy = false 
)
static

Creates a image from in memory "PNG" data.

Returns
Image object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]dataSizeSize of PNG data in bytes.
[in]dataMemory mapped PNG file.
[in]generateMipmapOptional, flag indicating whether or not to generate mipmaps.
[in]isProxyOptional, 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

Connect with Ansys