Skip to main content

Post-processing tools 2023 R2

GLTFMaterial.h

Last update: 17.04.2023
1 /*
2  * Copyright 2018-2021 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
3  *
4  * Restricted Rights Legend
5  *
6  * Use, duplication, or disclosure of this
7  * software and its documentation by the
8  * Government is subject to restrictions as
9  * set forth in subdivision [(b)(3)(ii)] of
10  * the Rights in Technical Data and Computer
11  * Software clause at 52.227-7013.
12  */
13 #ifndef __INCLUDED_GLTF_GLTFMATERIAL__
14 #define __INCLUDED_GLTF_GLTFMATERIAL__
15 
16 #include "GLTFCommon.h"
17 #include "GLTFObject.h"
18 
19 namespace ANSYS { namespace Nexus { namespace GLTFWriter {
20  class GLTF;
21  class Technique;
22  class Value;
23 
29  class Material : public Object
30  {
31  protected:
32  virtual ~Material() {}
33 
34  public:
37  static GLTFWRITERSPEC Material *Create(GLTF *gltf,
38  Technique *technique
39  );
40 
43  GLTFWRITERSPEC virtual Material *Mirror() = 0;
48  GLTFWRITERSPEC virtual bool AppendValue(Value *value
49  ) = 0;
50  };
51 
52 } } }
53 
54 #endif
This is the main class of the GLTFWriter.
Definition: GLTFGLTF.h:32
Materials describe how primitives are rendered.
Definition: GLTFMaterial.h:30
virtual bool AppendValue(Value *value)=0
static Material * Create(GLTF *gltf, Technique *technique)
virtual Material * Mirror()=0
Techniques performs the rendering of primitives.
Values are objects for storing single and multiple numbers and strings.
Definition: GLTFValue.h:26
GLTFWriter API Documentation.
Definition: GLTFAnimation.h:19