    

 ## On this page

  

 

 # GLTFTechnique

 Last update: 16.07.2025 

<a id="l00001" name="l00001"></a> 1/\*

<a id="l00002" name="l00002"></a> 2 \* Copyright 2018-2021 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.

<a id="l00003" name="l00003"></a> 3 \* 

<a id="l00004" name="l00004"></a> 4 \* Restricted Rights Legend

<a id="l00005" name="l00005"></a> 5 \*

<a id="l00006" name="l00006"></a> 6 \* Use, duplication, or disclosure of this

<a id="l00007" name="l00007"></a> 7 \* software and its documentation by the

<a id="l00008" name="l00008"></a> 8 \* Government is subject to restrictions as

<a id="l00009" name="l00009"></a> 9 \* set forth in subdivision \[(b)(3)(ii)\] of

<a id="l00010" name="l00010"></a> 10 \* the Rights in Technical Data and Computer

<a id="l00011" name="l00011"></a> 11 \* Software clause at 52.227-7013.

<a id="l00012" name="l00012"></a> 12 \*/

<a id="l00013" name="l00013"></a> 13\#ifndef \_\_INCLUDED\_GLTF\_GLTFTECHNIQUE\_\_

<a id="l00014" name="l00014"></a> 14\#define \_\_INCLUDED\_GLTF\_GLTFTECHNIQUE\_\_

<a id="l00015" name="l00015"></a> 15 

<a id="l00016" name="l00016"></a> 16\#include "GLTFCommon.h"

<a id="l00017" name="l00017"></a> 17\#include "GLTFObject.h"

<a id="l00018" name="l00018"></a> 18 

<a id="l00019" name="l00019"></a> 19namespace [ANSYS](namespace_a_n_s_y_s.xhtml) { namespace Nexus { namespace GLTFWriter {

<a id="l00020" name="l00020"></a> 20 class GLTF;

<a id="l00021" name="l00021"></a> 21 class Program;

<a id="l00022" name="l00022"></a> 22 class Value;

<a id="l00023" name="l00023"></a> 23 

<a id="l00028" name="l00028"></a>[ 28](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) class [Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) : public Object

<a id="l00029" name="l00029"></a> 29 {

<a id="l00030" name="l00030"></a> 30 public:

<a id="l00032" name="l00032"></a>[ 32](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572c) enum [ParameterType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572c)

<a id="l00033" name="l00033"></a> 33 {

<a id="l00034" name="l00034"></a> 34// PT\_BYTE = 5120,

<a id="l00035" name="l00035"></a> 35// PT\_USIGNED\_BYTE = 5121,

<a id="l00036" name="l00036"></a> 36// PT\_SHORT = 5122,

<a id="l00037" name="l00037"></a> 37// PT\_UNSIGNED\_SHORT = 5123,

<a id="l00038" name="l00038"></a>[ 38](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca2d1bb71b03b6441e9908b149d6dd1fb3) [PT\_INT](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca2d1bb71b03b6441e9908b149d6dd1fb3) = 5124, 

<a id="l00039" name="l00039"></a> 39// PT\_UNSIGNED\_INT = 5125,

<a id="l00040" name="l00040"></a>[ 40](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca19c98b6589cd105e66bd34418a401781) [PT\_FLOAT](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca19c98b6589cd105e66bd34418a401781) = 5126, 

<a id="l00041" name="l00041"></a>[ 41](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572caf1f10a2c8fd2982bf1826370bb7a0f4b) [PT\_FLOAT\_VEC2](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572caf1f10a2c8fd2982bf1826370bb7a0f4b) = 35664, 

<a id="l00042" name="l00042"></a>[ 42](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca9e032d6885dc8956db47d4de23a046ce) [PT\_FLOAT\_VEC3](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca9e032d6885dc8956db47d4de23a046ce) = 35665, 

<a id="l00043" name="l00043"></a>[ 43](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca2ee53691b02a2647b586f8325184aee9) [PT\_FLOAT\_VEC4](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca2ee53691b02a2647b586f8325184aee9) = 35666, 

<a id="l00044" name="l00044"></a>[ 44](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572caada3187a9c39033ca76fd91257c1843d) [PT\_INT\_VEC2](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572caada3187a9c39033ca76fd91257c1843d) = 35667, 

<a id="l00045" name="l00045"></a>[ 45](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca1f6e42c4388d7749ab49fefeaed8cc1d) [PT\_INT\_VEC3](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca1f6e42c4388d7749ab49fefeaed8cc1d) = 35668, 

<a id="l00046" name="l00046"></a>[ 46](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572caf01904fd050d19781c08eb65e0a0c89d) [PT\_INT\_VEC4](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572caf01904fd050d19781c08eb65e0a0c89d) = 35669, 

<a id="l00047" name="l00047"></a>[ 47](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572cabb63552893274e73c04b7caf7c168cbb) [PT\_BOOL](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572cabb63552893274e73c04b7caf7c168cbb) = 35670, 

<a id="l00048" name="l00048"></a> 48// PT\_BOOL\_VEC2 = 35671,

<a id="l00049" name="l00049"></a> 49// PT\_BOOL\_VEC3 = 35672,

<a id="l00050" name="l00050"></a> 50// PT\_BOOL\_VEC4 = 35673,

<a id="l00051" name="l00051"></a> 51// PT\_FLOAT\_MAT2 = 35674,

<a id="l00052" name="l00052"></a>[ 52](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca079041140bb22dd4fe83de8e06557661) [PT\_FLOAT\_MAT3](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca079041140bb22dd4fe83de8e06557661) = 35675, 

<a id="l00053" name="l00053"></a>[ 53](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca3ee4f3ed5774f20008423350a5baa74a) [PT\_FLOAT\_MAT4](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca3ee4f3ed5774f20008423350a5baa74a) = 35676, 

<a id="l00054" name="l00054"></a> 54 [PT\_SAMPLER\_2D](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572caae7eac8db24a1df5567994ab2062d468) = 35678 

<a id="l00055" name="l00055"></a>[ 55](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572caae7eac8db24a1df5567994ab2062d468) };

<a id="l00056" name="l00056"></a> 56 

<a id="l00057" name="l00057"></a> 57 protected:

<a id="l00058" name="l00058"></a> 58 virtual [~Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml)() {}

<a id="l00059" name="l00059"></a> 59 

<a id="l00060" name="l00060"></a> 60 public:

<a id="l00064" name="l00064"></a>[ 64](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#af910e4f7a293f6ad116435996ea10b8c) static GLTFWRITERSPEC [Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) *[Create](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#af910e4f7a293f6ad116435996ea10b8c)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf, 

<a id="l00065" name="l00065"></a> 65 const char *shaderName, 

<a id="l00066" name="l00066"></a> 66 const char *externalName, 

<a id="l00067" name="l00067"></a> 67 [ParameterType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572c) type, 

<a id="l00068" name="l00068"></a> 68 const [Value](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_value.xhtml) *defaultValue = 0 

<a id="l00069" name="l00069"></a> 69 );

<a id="l00072" name="l00072"></a>[ 72](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a6ec6eb14537787ab00a7279d148761ae) static GLTFWRITERSPEC [Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) *[CreateModelViewMatrix](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a6ec6eb14537787ab00a7279d148761ae)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf, 

<a id="l00073" name="l00073"></a> 73 const char *shaderName 

<a id="l00074" name="l00074"></a> 74 );

<a id="l00078" name="l00078"></a>[ 78](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#af7e19f42eba3e0df0226f41992b8aeba) static GLTFWRITERSPEC [Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) *[CreateModelMatrix](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#af7e19f42eba3e0df0226f41992b8aeba)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf, 

<a id="l00079" name="l00079"></a> 79 const char *shaderName 

<a id="l00080" name="l00080"></a> 80 );

<a id="l00084" name="l00084"></a>[ 84](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a4887dd4bd648faf5da812e53eb675625) static GLTFWRITERSPEC [Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) *[CreateViewMatrix](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a4887dd4bd648faf5da812e53eb675625)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf, 

<a id="l00085" name="l00085"></a> 85 const char *shaderName 

<a id="l00086" name="l00086"></a> 86 );

<a id="l00090" name="l00090"></a>[ 90](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#ab4bc368d72a3f8575348ff19660dc44f) static GLTFWRITERSPEC [Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) *[CreateProjectionMatrix](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#ab4bc368d72a3f8575348ff19660dc44f)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf, 

<a id="l00091" name="l00091"></a> 91 const char *shaderName 

<a id="l00092" name="l00092"></a> 92 );

<a id="l00096" name="l00096"></a>[ 96](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#af4e907f6015a27d504eeedd7bba909d5) static GLTFWRITERSPEC [Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) *[CreateNormalMatrix](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#af4e907f6015a27d504eeedd7bba909d5)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf, 

<a id="l00097" name="l00097"></a> 97 const char *shaderName 

<a id="l00098" name="l00098"></a> 98 );

<a id="l00103" name="l00103"></a>[ 103](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a505e89649ef3d083b52c7b13ea6889c1) static GLTFWRITERSPEC [Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) *[CreateViewport](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a505e89649ef3d083b52c7b13ea6889c1)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf, 

<a id="l00104" name="l00104"></a> 104 const char *shaderName 

<a id="l00105" name="l00105"></a> 105 );

<a id="l00109" name="l00109"></a>[ 109](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a7868057b3b6137c0477bd6fbbb0fbd67) static GLTFWRITERSPEC [Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) *[CreateTexture](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a7868057b3b6137c0477bd6fbbb0fbd67)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf, 

<a id="l00110" name="l00110"></a> 110 const char *shaderName, 

<a id="l00111" name="l00111"></a> 111 unsigned int num 

<a id="l00112" name="l00112"></a> 112 );

<a id="l00116" name="l00116"></a>[ 116](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a9c7eb4aec32bdb3ca79d2eeb89904dce) static GLTFWRITERSPEC [Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) *[CreatePosition](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a9c7eb4aec32bdb3ca79d2eeb89904dce)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf, 

<a id="l00117" name="l00117"></a> 117 const char *shaderName 

<a id="l00118" name="l00118"></a> 118 );

<a id="l00122" name="l00122"></a>[ 122](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a9a6325f1fbf7c4af67900676cd5cbb20) static GLTFWRITERSPEC [Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) *[CreateColor](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a9a6325f1fbf7c4af67900676cd5cbb20)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf, 

<a id="l00123" name="l00123"></a> 123 const char *shaderName, 

<a id="l00124" name="l00124"></a> 124 [ParameterType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572c) type 

<a id="l00125" name="l00125"></a> 125 );

<a id="l00129" name="l00129"></a>[ 129](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#aa4c171f7cda94f6266a8dc45753babda) static GLTFWRITERSPEC [Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) *[CreatePointSize](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#aa4c171f7cda94f6266a8dc45753babda)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf, 

<a id="l00130" name="l00130"></a> 130 const char *shaderName 

<a id="l00131" name="l00131"></a> 131 );

<a id="l00135" name="l00135"></a>[ 135](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a3834e9d02b9466d46c1ba66786a700ea) static GLTFWRITERSPEC [Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml)* [CreateDisplacementScale](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a3834e9d02b9466d46c1ba66786a700ea)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml)* gltf, 

<a id="l00136" name="l00136"></a> 136 const char* shaderName 

<a id="l00137" name="l00137"></a> 137 );

<a id="l00141" name="l00141"></a>[ 141](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#ab9539f4e642671bc97c39eb58f518a8c) static GLTFWRITERSPEC [Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) *[CreateNormal](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#ab9539f4e642671bc97c39eb58f518a8c)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf, 

<a id="l00142" name="l00142"></a> 142 const char *shaderName 

<a id="l00143" name="l00143"></a> 143 );

<a id="l00147" name="l00147"></a>[ 147](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#ab4bca02bd752b9f5cfa7384b0cdb1e52) static GLTFWRITERSPEC [Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) *[CreateTexCoord](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#ab4bca02bd752b9f5cfa7384b0cdb1e52)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf, 

<a id="l00148" name="l00148"></a> 148 const char *shaderName, 

<a id="l00149" name="l00149"></a> 149 unsigned int num 

<a id="l00150" name="l00150"></a> 150 );

<a id="l00151" name="l00151"></a> 151 };

<a id="l00152" name="l00152"></a> 152 

<a id="l00155" name="l00155"></a>[ 155](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml) class [State](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml) : public Object

<a id="l00156" name="l00156"></a> 156 {

<a id="l00157" name="l00157"></a> 157 public:

<a id="l00159" name="l00159"></a>[ 159](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718) enum [StateType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718)

<a id="l00160" name="l00160"></a> 160 {

<a id="l00161" name="l00161"></a>[ 161](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a6ba7f6fb9dec47c5e1b1aa8308908ef2) [ST\_UNKNOWN](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a6ba7f6fb9dec47c5e1b1aa8308908ef2), 

<a id="l00162" name="l00162"></a> 162// ST\_BLENDCOLOR, // RED, //(0.0), 0.0 - 1.0

<a id="l00163" name="l00163"></a> 163 // GREEN, //(0.0), 0.0 - 1.0

<a id="l00164" name="l00164"></a> 164 // BLUE, //(0.0), 0.0 - 1.0

<a id="l00165" name="l00165"></a> 165 // ALPHA, //(0.0), 0.0 - 1.0

<a id="l00166" name="l00166"></a>[ 166](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a333b0ebeb6a896a3b0b973da1f1ce56a) [ST\_BLENDENABLE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a333b0ebeb6a896a3b0b973da1f1ce56a), 

<a id="l00167" name="l00167"></a> 167// ST\_BLENDEQUATION, //(32774), FUNC\_ADD(32774), FUNC\_SUBTRACT(32778), FUNC\_REVERSE\_SUBTRACT(32779)

<a id="l00168" name="l00168"></a> 168// ST\_BLENDEQUATIONSEPARATE, // RGB, //(32774), FUNC\_ADD(32774), FUNC\_SUBTRACT(32778), FUNC\_REVERSE\_SUBTRACT(32779)

<a id="l00169" name="l00169"></a> 169 // ALPHA, //(32774), FUNC\_ADD(32774), FUNC\_SUBTRACT(32778), FUNC\_REVERSE\_SUBTRACT(32779)

<a id="l00170" name="l00170"></a> 170// ST\_BLENDFUNC, // SFACTOR, //(1), ZERO(0), ONE(1), SRC\_COLOR(768), ONE\_MINUS\_SOURCE\_COLOR(769), DST\_COLOR(774), ONE\_MINUS\_DST\_COLOR(775), SRC\_ALPHA(770), ONE\_MINUS\_SRC\_ALPHA(771), DST\_ALPHA(772), ONE\_MINUS\_DST\_ALPHA(773), CONSANT\_COLOR(32769), ONE\_MINUS\_CONSTANT\_COLOR(32770), CONSTANT\_ALPHA(32771), ONE\_MINUS\_CONSTANT\_ALPHA(32772), SRC\_ALPHA\_SATURATE(776)

<a id="l00171" name="l00171"></a> 171 // DFACTOR, //(0), ZERO(0), ONE(1), SRC\_COLOR(768), ONE\_MINUS\_SOURCE\_COLOR(769), DST\_COLOR(774), ONE\_MINUS\_DST\_COLOR(775), SRC\_ALPHA(770), ONE\_MINUS\_SRC\_ALPHA(771), DST\_ALPHA(772), ONE\_MINUS\_DST\_ALPHA(773), CONSANT\_COLOR(32769), ONE\_MINUS\_CONSTANT\_COLOR(32770), CONSTANT\_ALPHA(32771), ONE\_MINUS\_CONSTANT\_ALPHA(32772), SRC\_ALPHA\_SATURATE(776)

<a id="l00172" name="l00172"></a> 172// ST\_BLENDFUNCSEPARATE, // SRCRGB, //(1), ZERO(0), ONE(1), SRC\_COLOR(768), ONE\_MINUS\_SOURCE\_COLOR(769), DST\_COLOR(774), ONE\_MINUS\_DST\_COLOR(775), SRC\_ALPHA(770), ONE\_MINUS\_SRC\_ALPHA(771), DST\_ALPHA(772), ONE\_MINUS\_DST\_ALPHA(773), CONSANT\_COLOR(32769), ONE\_MINUS\_CONSTANT\_COLOR(32770), CONSTANT\_ALPHA(32771), ONE\_MINUS\_CONSTANT\_ALPHA(32772), SRC\_ALPHA\_SATURATE(776)

<a id="l00173" name="l00173"></a> 173 // SRCALPHA, //(1), ZERO(0), ONE(1), SRC\_COLOR(768), ONE\_MINUS\_SOURCE\_COLOR(769), DST\_COLOR(774), ONE\_MINUS\_DST\_COLOR(775), SRC\_ALPHA(770), ONE\_MINUS\_SRC\_ALPHA(771), DST\_ALPHA(772), ONE\_MINUS\_DST\_ALPHA(773), CONSANT\_COLOR(32769), ONE\_MINUS\_CONSTANT\_COLOR(32770), CONSTANT\_ALPHA(32771), ONE\_MINUS\_CONSTANT\_ALPHA(32772), SRC\_ALPHA\_SATURATE(776)

<a id="l00174" name="l00174"></a> 174 // DSTRGB, //(0), ZERO(0), ONE(1), SRC\_COLOR(768), ONE\_MINUS\_SOURCE\_COLOR(769), DST\_COLOR(774), ONE\_MINUS\_DST\_COLOR(775), SRC\_ALPHA(770), ONE\_MINUS\_SRC\_ALPHA(771), DST\_ALPHA(772), ONE\_MINUS\_DST\_ALPHA(773), CONSANT\_COLOR(32769), ONE\_MINUS\_CONSTANT\_COLOR(32770), CONSTANT\_ALPHA(32771), ONE\_MINUS\_CONSTANT\_ALPHA(32772), SRC\_ALPHA\_SATURATE(776)

<a id="l00175" name="l00175"></a> 175 // DSTALPHA, //(0), ZERO(0), ONE(1), SRC\_COLOR(768), ONE\_MINUS\_SOURCE\_COLOR(769), DST\_COLOR(774), ONE\_MINUS\_DST\_COLOR(775), SRC\_ALPHA(770), ONE\_MINUS\_SRC\_ALPHA(771), DST\_ALPHA(772), ONE\_MINUS\_DST\_ALPHA(773), CONSANT\_COLOR(32769), ONE\_MINUS\_CONSTANT\_COLOR(32770), CONSTANT\_ALPHA(32771), ONE\_MINUS\_CONSTANT\_ALPHA(32772), SRC\_ALPHA\_SATURATE(776)

<a id="l00176" name="l00176"></a> 176// ST\_COLORMASK, // RED, //(1), FALSE(0), TRUE(1)

<a id="l00177" name="l00177"></a> 177 // GREEN, //(1), FALSE(0), TRUE(1)

<a id="l00178" name="l00178"></a> 178 // BLUE, //(1), FALSE(0), TRUE(1)

<a id="l00179" name="l00179"></a> 179 // ALPHA, //(1), FALSE(0), TRUE(1)

<a id="l00180" name="l00180"></a>[ 180](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a409a3bd374705e786c33ee7b326e2860) [ST\_CULLFACE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a409a3bd374705e786c33ee7b326e2860), 

<a id="l00181" name="l00181"></a>[ 181](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a950a850eec2d410fe53ba28a2c0515c7) [ST\_CULLFACEENABLE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a950a850eec2d410fe53ba28a2c0515c7), 

<a id="l00182" name="l00182"></a>[ 182](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a09242c1920a75f5338f2f60a1282af78) [ST\_DEPTHFUNC](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a09242c1920a75f5338f2f60a1282af78), 

<a id="l00183" name="l00183"></a>[ 183](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a464627ea131bb705e6378f0e4a78da17) [ST\_DEPTHMASK](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a464627ea131bb705e6378f0e4a78da17), 

<a id="l00184" name="l00184"></a> 184// ST\_DEPTHRANGE, // ZNEAR, //(0.0), 0.0 - 1.0

<a id="l00185" name="l00185"></a> 185 // ZFAR, //(1.0), 0.0 - 1.0

<a id="l00186" name="l00186"></a>[ 186](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a5a304a50ef0c9a98124f4c998ec47f3b) [ST\_DEPTHTESTENABLE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a5a304a50ef0c9a98124f4c998ec47f3b), 

<a id="l00187" name="l00187"></a> 187// ST\_DITHERENABLE, //(1), FALSE(0), TRUE(1)

<a id="l00188" name="l00188"></a>[ 188](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a6c52b37d65ca6cf07d32dc3a8e41f91c) [ST\_FRONTFACE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a6c52b37d65ca6cf07d32dc3a8e41f91c), 

<a id="l00189" name="l00189"></a>[ 189](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a20b61519f986fb6c11f5647f59f909b2) [ST\_LINEWIDTH](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a20b61519f986fb6c11f5647f59f909b2), 

<a id="l00190" name="l00190"></a> 190// ST\_POINTSIZE,

<a id="l00191" name="l00191"></a>[ 191](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a8d68696d1fa9be8598a2c72bd2037cdf) [ST\_POLYGONOFFSET](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a8d68696d1fa9be8598a2c72bd2037cdf), 

<a id="l00192" name="l00192"></a> 192 [ST\_POLYGONOFFSETFILLENABLE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718aec887719b49e101eeb039e857009888c) 

<a id="l00193" name="l00193"></a> 193// ST\_SAMPLEALPHATOCOVERAGEENABLE, //(0), FALSE(0), TRUE(0)

<a id="l00194" name="l00194"></a> 194// ST\_SAMPLECOVERAGE, // VALUE, //(1.0), 0.0 - 1.0

<a id="l00195" name="l00195"></a> 195 // INVERT, //(0) FALSE(0), TRUE(1)

<a id="l00196" name="l00196"></a> 196// ST\_SAMPLECOVERAGEENABLE, //(0), FALSE(0), TRUE(1) 

<a id="l00197" name="l00197"></a> 197// ST\_SCISSOR, // X, //(0), &gt; 0

<a id="l00198" name="l00198"></a> 198 // Y, //(0), &gt; 0

<a id="l00199" name="l00199"></a> 199 // WIDTH, //(0), &gt; 0

<a id="l00200" name="l00200"></a> 200 // HEIGHT, //(0), &gt; 0

<a id="l00201" name="l00201"></a> 201// ST\_SCISSORTESTENABLE, //(0), FALSE(0), TRUE(1)

<a id="l00202" name="l00202"></a> 202// ST\_STENCILFUNC, // FUNC, //(519), NEVER(512), LESS(513), LEQUAL(515), EQUAL(514), GREATER(516), NOTEQUAL(517), GEQUAL(518), ALWAYS(519)

<a id="l00203" name="l00203"></a> 203 // REF, //(0), 0 - 2^n-1 where n is number of bit planes in stencil buffer

<a id="l00204" name="l00204"></a> 204 // MASK, //(0xFFFFFFFF), 0 - 0xFFFFFFFF

<a id="l00205" name="l00205"></a> 205// ST\_STENCILFUNCSEPARATE, // FACE, //(?), FRONT(1028), BACK(1029), FRONT\_AND\_BACK(1032)

<a id="l00206" name="l00206"></a> 206 // FUNC, //(519), NEVER(512), LESS(513), LEQUAL(515), EQUAL(514), GREATER(516), NOTEQUAL(517), GEQUAL(518), ALWAYS(519)

<a id="l00207" name="l00207"></a> 207 // REF, //(0), 0 - 2^n-1 where n is number of bit planes in stencil buffer

<a id="l00208" name="l00208"></a> 208 // MASK, //(0xFFFFFFFF), 0 - 0xFFFFFFFF

<a id="l00209" name="l00209"></a> 209// ST\_STENCILMASK, //(0xFFFFFFFF), 0 - 0xFFFFFFFF

<a id="l00210" name="l00210"></a> 210// ST\_STENCILMASKSEPARATE, // FACE, //(?), FRONT(1028), BACK(1029), FRONT\_AND\_BACK(1032)

<a id="l00211" name="l00211"></a> 211 // MASK, //(0xFFFFFFFF), 0 - 0xFFFFFFFF

<a id="l00212" name="l00212"></a> 212// ST\_STENCILOP, // SFAIL, //(7680), KEEP(7680), ZERO(0), REPLACE(7681), INCR(7682), DECR(7683), INVERT(5386), INCR\_WRAP(34055), DECR\_WRAP(34056)

<a id="l00213" name="l00213"></a> 213 // DPFAIL, //(7680), KEEP(7680), ZERO(0), REPLACE(7681), INCR(7682), DECR(7683), INVERT(5386), INCR\_WRAP(34055), DECR\_WRAP(34056)

<a id="l00214" name="l00214"></a> 214 // DPPASS, //(7680), KEEP(7680), ZERO(0), REPLACE(7681), INCR(7682), DECR(7683), INVERT(5386), INCR\_WRAP(34055), DECR\_WRAP(34056)

<a id="l00215" name="l00215"></a> 215// ST\_STENCILOPSEPARATE, // FACE, //(?), FRONT(1028), BACK(1029), FRONT\_AND\_BACK(1032)

<a id="l00216" name="l00216"></a> 216 // SFAIL, //(7680), KEEP(7680), ZERO(0), REPLACE(7681), INCR(7682), DECR(7683), INVERT(5386), INCR\_WRAP(34055), DECR\_WRAP(34056)

<a id="l00217" name="l00217"></a> 217 // DPFAIL, //(7680), KEEP(7680), ZERO(0), REPLACE(7681), INCR(7682), DECR(7683), INVERT(5386), INCR\_WRAP(34055), DECR\_WRAP(34056)

<a id="l00218" name="l00218"></a> 218 // DPPASS, //(7680), KEEP(7680), ZERO(0), REPLACE(7681), INCR(7682), DECR(7683), INVERT(5386), INCR\_WRAP(34055), DECR\_WRAP(34056)

<a id="l00219" name="l00219"></a> 219// ST\_STENCILTESTENABLE //(0), FALSE(0), TRUE(1)

<a id="l00220" name="l00220"></a>[ 220](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718aec887719b49e101eeb039e857009888c) };

<a id="l00221" name="l00221"></a> 221 

<a id="l00222" name="l00222"></a> 222 protected:

<a id="l00223" name="l00223"></a> 223 virtual [~State](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml)() {}

<a id="l00224" name="l00224"></a> 224 

<a id="l00225" name="l00225"></a> 225 public:

<a id="l00228" name="l00228"></a>[ 228](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#afc1d1b8b041454372d4236c4ffc5a473) static GLTFWRITERSPEC [State](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml) *[Create](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#afc1d1b8b041454372d4236c4ffc5a473)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf, 

<a id="l00229" name="l00229"></a> 229 [StateType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718) type, 

<a id="l00230" name="l00230"></a> 230 double v1, 

<a id="l00231" name="l00231"></a> 231 double v2 = 0, 

<a id="l00232" name="l00232"></a> 232 double v3 = 0, 

<a id="l00233" name="l00233"></a> 233 double v4 = 0 

<a id="l00234" name="l00234"></a> 234 );

<a id="l00235" name="l00235"></a> 235 };

<a id="l00236" name="l00236"></a> 236 

<a id="l00239" name="l00239"></a>[ 239](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml) class [Technique](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml) : public Object

<a id="l00240" name="l00240"></a> 240 {

<a id="l00241" name="l00241"></a> 241 protected:

<a id="l00242" name="l00242"></a> 242 virtual [~Technique](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml)() {}

<a id="l00243" name="l00243"></a> 243 

<a id="l00244" name="l00244"></a> 244 public:

<a id="l00247" name="l00247"></a>[ 247](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml#a86f22d6d6ed71c9873f8326401b65bc7) static GLTFWRITERSPEC [Technique](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml) *[Create](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml#a86f22d6d6ed71c9873f8326401b65bc7)([GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf, 

<a id="l00248" name="l00248"></a> 248 [Program](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_program.xhtml) *program = 0, 

<a id="l00249" name="l00249"></a> 249 bool is2D = false 

<a id="l00250" name="l00250"></a> 250 );

<a id="l00251" name="l00251"></a> 251 

<a id="l00254" name="l00254"></a>[ 254](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml#a8403513af2da5e81e5f209114e8f43bc) GLTFWRITERSPEC virtual [Technique](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml) *[Mirror](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml#a8403513af2da5e81e5f209114e8f43bc)() = 0;

<a id="l00257" name="l00257"></a>[ 257](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml#a7ae1c9a2bf9f8c044cd02e6a6990b75f) GLTFWRITERSPEC virtual bool [AppendParameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml#a7ae1c9a2bf9f8c044cd02e6a6990b75f)([Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) *parameter 

<a id="l00258" name="l00258"></a> 258 ) = 0;

<a id="l00261" name="l00261"></a>[ 261](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml#a07adefb88b59c6f4b8ec47296ee06f62) GLTFWRITERSPEC virtual bool [AppendState](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml#a07adefb88b59c6f4b8ec47296ee06f62)([State](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml) *state 

<a id="l00262" name="l00262"></a> 262 ) = 0;

<a id="l00263" name="l00263"></a> 263 };

<a id="l00264" name="l00264"></a> 264 

<a id="l00265" name="l00265"></a> 265} } }

<a id="l00266" name="l00266"></a> 266 

<a id="l00267" name="l00267"></a> 267\#endif

[ANSYS::Nexus::GLTFWriter::GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml)

This is the main class of the GLTFWriter.

**Definition:** [GLTFGLTF.h:32](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00031)



[ANSYS::Nexus::GLTFWriter::Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml)

Parameters describe how and from where program attributes and uniforms are derived.

**Definition:** [GLTFTechnique.h:29](_g_l_t_f_technique_8h_source.xhtml#l00028)



[ANSYS::Nexus::GLTFWriter::Parameter::CreateDisplacementScale](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a3834e9d02b9466d46c1ba66786a700ea)

static Parameter * CreateDisplacementScale(GLTF *gltf, const char *shaderName)



[ANSYS::Nexus::GLTFWriter::Parameter::CreateViewMatrix](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a4887dd4bd648faf5da812e53eb675625)

static Parameter * CreateViewMatrix(GLTF *gltf, const char *shaderName)



[ANSYS::Nexus::GLTFWriter::Parameter::CreateViewport](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a505e89649ef3d083b52c7b13ea6889c1)

static Parameter * CreateViewport(GLTF *gltf, const char *shaderName)



[ANSYS::Nexus::GLTFWriter::Parameter::CreateModelViewMatrix](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a6ec6eb14537787ab00a7279d148761ae)

static Parameter * CreateModelViewMatrix(GLTF *gltf, const char *shaderName)



[ANSYS::Nexus::GLTFWriter::Parameter::CreateTexture](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a7868057b3b6137c0477bd6fbbb0fbd67)

static Parameter * CreateTexture(GLTF *gltf, const char *shaderName, unsigned int num)



[ANSYS::Nexus::GLTFWriter::Parameter::ParameterType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572c)

ParameterType

**Definition:** [GLTFTechnique.h:33](_g_l_t_f_technique_8h_source.xhtml#l00032)



[ANSYS::Nexus::GLTFWriter::Parameter::PT\_FLOAT\_MAT3](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca079041140bb22dd4fe83de8e06557661)

@ PT_FLOAT_MAT3

3x3 (9) AT_FLOAT's

**Definition:** [GLTFTechnique.h:52](_g_l_t_f_technique_8h_source.xhtml#l00052)



[ANSYS::Nexus::GLTFWriter::Parameter::PT\_FLOAT](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca19c98b6589cd105e66bd34418a401781)

@ PT_FLOAT

4 byte float

**Definition:** [GLTFTechnique.h:40](_g_l_t_f_technique_8h_source.xhtml#l00040)



[ANSYS::Nexus::GLTFWriter::Parameter::PT\_INT\_VEC3](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca1f6e42c4388d7749ab49fefeaed8cc1d)

@ PT_INT_VEC3

3 PT_INT's

**Definition:** [GLTFTechnique.h:45](_g_l_t_f_technique_8h_source.xhtml#l00045)



[ANSYS::Nexus::GLTFWriter::Parameter::PT\_INT](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca2d1bb71b03b6441e9908b149d6dd1fb3)

@ PT_INT

4 byte integer

**Definition:** [GLTFTechnique.h:38](_g_l_t_f_technique_8h_source.xhtml#l00038)



[ANSYS::Nexus::GLTFWriter::Parameter::PT\_FLOAT\_VEC4](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca2ee53691b02a2647b586f8325184aee9)

@ PT_FLOAT_VEC4

4 PT_FLOAT's

**Definition:** [GLTFTechnique.h:43](_g_l_t_f_technique_8h_source.xhtml#l00043)



[ANSYS::Nexus::GLTFWriter::Parameter::PT\_FLOAT\_MAT4](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca3ee4f3ed5774f20008423350a5baa74a)

@ PT_FLOAT_MAT4

4x4 (16) PT_FLOAT's

**Definition:** [GLTFTechnique.h:53](_g_l_t_f_technique_8h_source.xhtml#l00053)



[ANSYS::Nexus::GLTFWriter::Parameter::PT\_FLOAT\_VEC3](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572ca9e032d6885dc8956db47d4de23a046ce)

@ PT_FLOAT_VEC3

3 PT_FLOAT's

**Definition:** [GLTFTechnique.h:42](_g_l_t_f_technique_8h_source.xhtml#l00042)



[ANSYS::Nexus::GLTFWriter::Parameter::PT\_INT\_VEC2](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572caada3187a9c39033ca76fd91257c1843d)

@ PT_INT_VEC2

2 PT_INT's

**Definition:** [GLTFTechnique.h:44](_g_l_t_f_technique_8h_source.xhtml#l00044)



[ANSYS::Nexus::GLTFWriter::Parameter::PT\_SAMPLER\_2D](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572caae7eac8db24a1df5567994ab2062d468)

@ PT_SAMPLER_2D

2D Texture

**Definition:** [GLTFTechnique.h:54](_g_l_t_f_technique_8h_source.xhtml#l00055)



[ANSYS::Nexus::GLTFWriter::Parameter::PT\_BOOL](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572cabb63552893274e73c04b7caf7c168cbb)

@ PT_BOOL

1 byte bool

**Definition:** [GLTFTechnique.h:47](_g_l_t_f_technique_8h_source.xhtml#l00047)



[ANSYS::Nexus::GLTFWriter::Parameter::PT\_INT\_VEC4](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572caf01904fd050d19781c08eb65e0a0c89d)

@ PT_INT_VEC4

4 PT_INT's

**Definition:** [GLTFTechnique.h:46](_g_l_t_f_technique_8h_source.xhtml#l00046)



[ANSYS::Nexus::GLTFWriter::Parameter::PT\_FLOAT\_VEC2](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a93b92cf730f9530cef13458f0b12572caf1f10a2c8fd2982bf1826370bb7a0f4b)

@ PT_FLOAT_VEC2

2 PT_FLOAT's

**Definition:** [GLTFTechnique.h:41](_g_l_t_f_technique_8h_source.xhtml#l00041)



[ANSYS::Nexus::GLTFWriter::Parameter::CreateColor](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a9a6325f1fbf7c4af67900676cd5cbb20)

static Parameter * CreateColor(GLTF *gltf, const char *shaderName, ParameterType type)



[ANSYS::Nexus::GLTFWriter::Parameter::CreatePosition](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#a9c7eb4aec32bdb3ca79d2eeb89904dce)

static Parameter * CreatePosition(GLTF *gltf, const char *shaderName)



[ANSYS::Nexus::GLTFWriter::Parameter::CreatePointSize](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#aa4c171f7cda94f6266a8dc45753babda)

static Parameter * CreatePointSize(GLTF *gltf, const char *shaderName)



[ANSYS::Nexus::GLTFWriter::Parameter::CreateProjectionMatrix](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#ab4bc368d72a3f8575348ff19660dc44f)

static Parameter * CreateProjectionMatrix(GLTF *gltf, const char *shaderName)



[ANSYS::Nexus::GLTFWriter::Parameter::CreateTexCoord](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#ab4bca02bd752b9f5cfa7384b0cdb1e52)

static Parameter * CreateTexCoord(GLTF *gltf, const char *shaderName, unsigned int num)



[ANSYS::Nexus::GLTFWriter::Parameter::CreateNormal](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#ab9539f4e642671bc97c39eb58f518a8c)

static Parameter * CreateNormal(GLTF *gltf, const char *shaderName)



[ANSYS::Nexus::GLTFWriter::Parameter::CreateNormalMatrix](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#af4e907f6015a27d504eeedd7bba909d5)

static Parameter * CreateNormalMatrix(GLTF *gltf, const char *shaderName)



[ANSYS::Nexus::GLTFWriter::Parameter::CreateModelMatrix](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#af7e19f42eba3e0df0226f41992b8aeba)

static Parameter * CreateModelMatrix(GLTF *gltf, const char *shaderName)



[ANSYS::Nexus::GLTFWriter::Parameter::Create](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#af910e4f7a293f6ad116435996ea10b8c)

static Parameter * Create(GLTF *gltf, const char *shaderName, const char *externalName, ParameterType type, const Value *defaultValue=0)



[ANSYS::Nexus::GLTFWriter::Program](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_program.xhtml)

Programs are the GLSL executable code for rendering the primitives.

**Definition:** [GLTFProgram.h:28](_g_l_t_f_program_8h_source.xhtml#l00027)



[ANSYS::Nexus::GLTFWriter::State](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml)

States are GL state settings.

**Definition:** [GLTFTechnique.h:156](_g_l_t_f_technique_8h_source.xhtml#l00155)



[ANSYS::Nexus::GLTFWriter::State::Create](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#afc1d1b8b041454372d4236c4ffc5a473)

static State * Create(GLTF *gltf, StateType type, double v1, double v2=0, double v3=0, double v4=0)



[ANSYS::Nexus::GLTFWriter::State::StateType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718)

StateType

**Definition:** [GLTFTechnique.h:160](_g_l_t_f_technique_8h_source.xhtml#l00159)



[ANSYS::Nexus::GLTFWriter::State::ST\_DEPTHFUNC](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a09242c1920a75f5338f2f60a1282af78)

@ ST_DEPTHFUNC

Describes type of depth buffer comparison. Possible values are:

**Definition:** [GLTFTechnique.h:182](_g_l_t_f_technique_8h_source.xhtml#l00182)



[ANSYS::Nexus::GLTFWriter::State::ST\_LINEWIDTH](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a20b61519f986fb6c11f5647f59f909b2)

@ ST_LINEWIDTH

Defines the width of drawn lines. The value is &gt; 0.0 (Linewidth other than 1.0 is not supported by mo...

**Definition:** [GLTFTechnique.h:189](_g_l_t_f_technique_8h_source.xhtml#l00189)



[ANSYS::Nexus::GLTFWriter::State::ST\_BLENDENABLE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a333b0ebeb6a896a3b0b973da1f1ce56a)

@ ST_BLENDENABLE

Enables blending of fragment colors. Possible values are:

**Definition:** [GLTFTechnique.h:166](_g_l_t_f_technique_8h_source.xhtml#l00166)



[ANSYS::Nexus::GLTFWriter::State::ST\_CULLFACE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a409a3bd374705e786c33ee7b326e2860)

@ ST_CULLFACE

Describes which faces to cull. Possible values are:

**Definition:** [GLTFTechnique.h:180](_g_l_t_f_technique_8h_source.xhtml#l00180)



[ANSYS::Nexus::GLTFWriter::State::ST\_DEPTHMASK](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a464627ea131bb705e6378f0e4a78da17)

@ ST_DEPTHMASK

Enables writing into the depth buffer. Possible values are:

**Definition:** [GLTFTechnique.h:183](_g_l_t_f_technique_8h_source.xhtml#l00183)



[ANSYS::Nexus::GLTFWriter::State::ST\_DEPTHTESTENABLE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a5a304a50ef0c9a98124f4c998ec47f3b)

@ ST_DEPTHTESTENABLE

Enables testing of depth buffer. Possible values are:

**Definition:** [GLTFTechnique.h:186](_g_l_t_f_technique_8h_source.xhtml#l00186)



[ANSYS::Nexus::GLTFWriter::State::ST\_UNKNOWN](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a6ba7f6fb9dec47c5e1b1aa8308908ef2)

@ ST_UNKNOWN

Bad state.

**Definition:** [GLTFTechnique.h:161](_g_l_t_f_technique_8h_source.xhtml#l00161)



[ANSYS::Nexus::GLTFWriter::State::ST\_FRONTFACE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a6c52b37d65ca6cf07d32dc3a8e41f91c)

@ ST_FRONTFACE

Describes how to detect front face from vertex ordering. Possible values are:

**Definition:** [GLTFTechnique.h:188](_g_l_t_f_technique_8h_source.xhtml#l00188)



[ANSYS::Nexus::GLTFWriter::State::ST\_POLYGONOFFSET](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a8d68696d1fa9be8598a2c72bd2037cdf)

@ ST_POLYGONOFFSET

Defines the Factor and units for the draw offset of polygons. The first argument is FACTOR which is &gt;...

**Definition:** [GLTFTechnique.h:191](_g_l_t_f_technique_8h_source.xhtml#l00191)



[ANSYS::Nexus::GLTFWriter::State::ST\_CULLFACEENABLE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718a950a850eec2d410fe53ba28a2c0515c7)

@ ST_CULLFACEENABLE

Enables culling of faces. Possible values are:

**Definition:** [GLTFTechnique.h:181](_g_l_t_f_technique_8h_source.xhtml#l00181)



[ANSYS::Nexus::GLTFWriter::State::ST\_POLYGONOFFSETFILLENABLE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_state.xhtml#affd67e37265c1883f760fd0c368ba718aec887719b49e101eeb039e857009888c)

@ ST_POLYGONOFFSETFILLENABLE

Enables polygon offset. Possible values are:

**Definition:** [GLTFTechnique.h:192](_g_l_t_f_technique_8h_source.xhtml#l00220)



[ANSYS::Nexus::GLTFWriter::Technique](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml)

Techniques performs the rendering of primitives.

**Definition:** [GLTFTechnique.h:240](_g_l_t_f_technique_8h_source.xhtml#l00239)



[ANSYS::Nexus::GLTFWriter::Technique::AppendState](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml#a07adefb88b59c6f4b8ec47296ee06f62)

virtual bool AppendState(State *state)=0



[ANSYS::Nexus::GLTFWriter::Technique::AppendParameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml#a7ae1c9a2bf9f8c044cd02e6a6990b75f)

virtual bool AppendParameter(Parameter *parameter)=0



[ANSYS::Nexus::GLTFWriter::Technique::Mirror](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml#a8403513af2da5e81e5f209114e8f43bc)

virtual Technique * Mirror()=0



[ANSYS::Nexus::GLTFWriter::Technique::Create](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_technique.xhtml#a86f22d6d6ed71c9873f8326401b65bc7)

static Technique * Create(GLTF *gltf, Program *program=0, bool is2D=false)



[ANSYS::Nexus::GLTFWriter::Value](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_value.xhtml)

Values are objects for storing single and multiple numbers and strings.

**Definition:** [GLTFValue.h:26](_g_l_t_f_value_8h_source.xhtml#l00025)



[ANSYS](namespace_a_n_s_y_s.xhtml)

GLTFWriter API Documentation.

**Definition:** [GLTFAnimation.h:19](_g_l_t_f_animation_8h_source.xhtml#l00019)