Skip to main content

Post-processing tools 2023 R2

ANSYS::Nexus::GLTFWriter::Shader Class Reference

Last update: 17.04.2023

Shaders are the GLSL executable code for vertex and fragment. More...

#include <GLTFWriter.h>

Inheritance diagram for ANSYS::Nexus::GLTFWriter::Shader:

Static Public Member Functions

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

Detailed Description

Shaders are the GLSL executable code for vertex and fragment.

Definition at line 25 of file GLTFShader.h.

Member Function Documentation

◆ Create()

static Shader* ANSYS::Nexus::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.
Examples
Test002.cpp, and Test008.cpp.

The documentation for this class was generated from the following file:
  • D:/ANSYSDev/NoBackup/branches/EnSight-Second-Coming/webgl_viewer/gltfwriterlib/include/GLTFShader.h