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
- Examples
- Test002.cpp, Test005.cpp, Test008.cpp, Test009.cpp, Test010.cpp, Test013.cpp, and Test014.cpp.
Definition at line 239 of file GLTFTechnique.h.
Constructor & Destructor Documentation
◆ ~Technique()
|
inlineprotectedvirtual |
Definition at line 242 of file GLTFTechnique.h.
Member Function Documentation
◆ AppendParameter()
|
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] parameter Parameter object.
- Examples
- Test002.cpp, and Test008.cpp.
◆ AppendState()
|
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] state State object.
- Examples
- Test002.cpp, Test005.cpp, Test008.cpp, Test009.cpp, Test010.cpp, Test013.cpp, and Test014.cpp.
◆ Create()
|
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] gltf GLTF object. [in] program Optional, Program object describing vertex and fragment shaders. If not specified a simple auto-generated shader is created. [in] is2D Optional, 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()
|
pure virtual |
The documentation for this class was generated from the following file:
- D:/Product-src/webgl_viewer/gltfwriterlib/include/GLTFTechnique.h