Skip to main content

Post-processing tools 2023 R2

GLTFImage.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_GLTFIMAGE__
14 #define __INCLUDED_GLTF_GLTFIMAGE__
15 
16 #include "GLTFCommon.h"
17 #include "GLTFObject.h"
18 
19 namespace ANSYS { namespace Nexus { namespace GLTFWriter {
20  class GLTF;
21 
26  class Image : public Object
27  {
28  protected:
29  virtual ~Image() {}
30 
31  public:
34  static GLTFWRITERSPEC Image *Create(GLTF *gltf,
35  const char *filePath,
36  bool generateMipmap = false,
37  bool isProxy = false
38  );
41  static GLTFWRITERSPEC Image *Create(GLTF *gltf,
42  unsigned int dataSize,
43  const unsigned char *data,
44  bool generateMipmap = false,
45  bool isProxy = false
46  );
47  };
48 
49 } } }
50 
51 #endif
This is the main class of the GLTFWriter.
Definition: GLTFGLTF.h:32
Images define texture data.
Definition: GLTFImage.h:27
static Image * Create(GLTF *gltf, unsigned int dataSize, const unsigned char *data, bool generateMipmap=false, bool isProxy=false)
static Image * Create(GLTF *gltf, const char *filePath, bool generateMipmap=false, bool isProxy=false)
GLTFWriter API Documentation.
Definition: GLTFAnimation.h:19