ANSYS::Nexus::GLTFWriter::Technique Class Reference
Last update: 17.04.2023Techniques performs the rendering of primitives. More...
#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
Techniques performs the rendering of primitives.
Definition at line 239 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.
◆ AppendState()
|
pure virtual |
◆ 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
- Examples
- Test002.cpp, Test005.cpp, Test008.cpp, Test009.cpp, Test010.cpp, Test013.cpp, and Test014.cpp.
◆ Mirror()
|
pure virtual |
The documentation for this class was generated from the following file:
- D:/ANSYSDev/NoBackup/branches/EnSight-Second-Coming/webgl_viewer/gltfwriterlib/include/GLTFTechnique.h