Skip to main content

Post-processing tools 2025 R1

GLTFShader

Last update: 16.07.2025
1/*
2 * Copyright 2018-2021 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
3 *
4 * Restricted Rights Legend
5 *
6 * Use, duplication, or disclosure of this
7 * software and its documentation by the
8 * Government is subject to restrictions as
9 * set forth in subdivision [(b)(3)(ii)] of
10 * the Rights in Technical Data and Computer
11 * Software clause at 52.227-7013.
12 */
13#ifndef __INCLUDED_GLTF_GLTFSHADER__
14#define __INCLUDED_GLTF_GLTFSHADER__
15
16#include "GLTFCommon.h"
17#include "GLTFObject.h"
18
19namespace ANSYS { namespace AVZ { namespace GLTFWriter {
20 class GLTF;
21
25 class Shader : public Object
26 {
27 protected:
28 virtual ~Shader() {}
29
30 public:
33 static GLTFWRITERSPEC Shader *Create(GLTF *gltf,
34 const char *shaderText,
35 unsigned int numAttributes,
36 const char **attributes,
37 unsigned int numUniforms,
38 const char **uniforms
39 );
40 };
41
42} } }
43
44#endif
This is the main class of the GLTFWriter.
Definition GLTFGLTF.h:32
Shaders are the GLSL executable code for vertex and fragment.
Definition GLTFShader.h:26
static Shader * Create(GLTF *gltf, const char *shaderText, unsigned int numAttributes, const char **attributes, unsigned int numUniforms, const char **uniforms)
GLTFWriter API Documentation.

Connect with Ansys