Skip to main content

Post-processing tools 2023 R2

ANSYS::Nexus::GLTFWriter::Image Class Reference

Last update: 17.04.2023

Images define texture data. More...

#include <GLTFWriter.h>

Inheritance diagram for ANSYS::Nexus::GLTFWriter::Image:

Static Public Member Functions

static ImageCreate (GLTF *gltf, const char *filePath, bool generateMipmap=false, bool isProxy=false)
 
static ImageCreate (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 Image* ANSYS::Nexus::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.
Examples
Test014.cpp.

◆ Create() [2/2]

static Image* ANSYS::Nexus::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:/ANSYSDev/NoBackup/branches/EnSight-Second-Coming/webgl_viewer/gltfwriterlib/include/GLTFImage.h