Skip to main content

Post-processing tools 2023 R2

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

Last update: 17.04.2023

Techniques performs the rendering of primitives. More...

#include <GLTFWriter.h>

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

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

Techniques performs the rendering of primitives.

Definition at line 239 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.

◆ 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.

◆ 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
Examples
Test002.cpp, Test005.cpp, Test008.cpp, Test009.cpp, Test010.cpp, Test013.cpp, and Test014.cpp.

◆ 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:
  • D:/ANSYSDev/NoBackup/branches/EnSight-Second-Coming/webgl_viewer/gltfwriterlib/include/GLTFTechnique.h