Skip to main content

Post-processing tools 2024 R1

ANSYS::Nexus::GLTFWriter::Technique Class Reference

Last update: 16.07.2025

#include <GLTFWriter.h>

Inheritance diagram for ANSYS::Nexus::GLTFWriter::Technique:

Public Member Functions

virtual Technique * Mirror ()=0
 
virtual bool AppendParameter (Parameter *parameter)=0
 
virtual bool AppendState (State *state)=0
 

Static Public Member Functions

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

Detailed Description

Constructor & Destructor Documentation

◆ ~Technique()

virtual ANSYS::Nexus::GLTFWriter::Technique::~Technique ( )
inlineprotectedvirtual

Definition at line 242 of file GLTFTechnique.h.

Member Function Documentation

◆ AppendParameter()

virtual bool ANSYS::Nexus::GLTFWriter::Technique::AppendParameter ( Parameter *  parameter)
pure virtual

Adds a parameter to a technique. Multiple parameters can be appended to a technique. Parameters describe how and from where program attributes and uniforms are derived.

Returns
Status of AppendParameter.
Parameters
[in]parameterParameter object.
Examples
Test002.cpp, and Test008.cpp.

◆ AppendState()

virtual bool ANSYS::Nexus::GLTFWriter::Technique::AppendState ( State *  state)
pure virtual

Adds a GL State setting to a technique. Multiple states can be appended to a technique. States set GL State values.

Returns
Status of AppendState.
Parameters
[in]stateState object.
Examples
Test002.cpp, Test005.cpp, Test008.cpp, Test009.cpp, Test010.cpp, Test013.cpp, and Test014.cpp.

◆ Create()

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

Creates a Technique. If program is not specified, a simple auto generated program is created.

Returns
Technique object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]programOptional, Program object describing vertex and fragment shaders. If not specified a simple auto-generated shader is created.
[in]is2DOptional, flag indicating that the object is 2D. Indicates if technique renders overlay object. Overlay objects are drawn last and do not participate in probing and clipping. The projection matrix is configured as an orthographic matrix with the minimum sized viewport side ranging from -1 to 1

◆ Mirror()

virtual Technique * ANSYS::Nexus::GLTFWriter::Technique::Mirror ( )
pure virtual

Creates a mirrored Technique. Mirroring simply flips the FRONTFACE state.

Returns
Technique object. Do not delete this pointer.

The documentation for this class was generated from the following file:

Connect with Ansys