Skip to main content

Post-processing tools 2025 R1

ANSYS::AVZ::GLTFWriter::Shader Class Reference

Last update: 16.07.2025

#include <GLTFWriter.h>

Inheritance diagram for ANSYS::AVZ::GLTFWriter::Shader:

Static Public Member Functions

static Shader * Create (GLTF *gltf, const char *shaderText, unsigned int numAttributes, const char **attributes, unsigned int numUniforms, const char **uniforms)
 

Detailed Description

Examples
Test002.cpp, and Test008.cpp.

Definition at line 25 of file GLTFShader.h.

Constructor & Destructor Documentation

◆ ~Shader()

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

Definition at line 28 of file GLTFShader.h.

Member Function Documentation

◆ Create()

static Shader * ANSYS::AVZ::GLTFWriter::Shader::Create ( GLTF * gltf,
const char * shaderText,
unsigned int numAttributes,
const char ** attributes,
unsigned int numUniforms,
const char ** uniforms )
static

Creates a shader.

Returns
Shader object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]shaderTextText of program.
[in]numAttributesNumber of attributes.
[in]attributesList of attributes in program.
[in]numUniformsNumber of uniforms.
[in]uniformsList of uniforms in program.

The documentation for this class was generated from the following file:
  • D:/ANSYSDev/Product-src/webgl_viewer/gltfwriterlib/include/GLTFShader.h

Connect with Ansys