> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GLTFTexture.h

```cpp theme={null}
/*
 * Copyright 2018-2021 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
 *
 * Restricted Rights Legend
 *
 * Use, duplication, or disclosure of this
 * software and its documentation by the
 * Government is subject to restrictions as
 * set forth in subdivision [(b)(3)(ii)] of
 * the Rights in Technical Data and Computer
 * Software clause at 52.227-7013.
 */
#ifndef __INCLUDED_GLTF_GLTFTEXTURE__
#define __INCLUDED_GLTF_GLTFTEXTURE__

#include "GLTFCommon.h"
#include "GLTFObject.h"

namespace ANSYS { namespace AVZ { namespace GLTFWriter {
 class GLTF;
 class Image;
 class Sampler;

 class Texture : public Object
    {
 public:
 enum TextureFormat
        {
//            TF_ALPHA = 6406,
 TF_RGB = 6407,
 TF_RGBA = 6408
//            TF_LUMINANCE = 6409,
//            TF_LUMINANCE_ALPHA = 6410
        };

 enum TextureTarget
        {
 TT_TEXTURE_2D = 3553
//            TT_TEXTURE_CUBE_MAP = 34067
        };

 protected:
 virtual ~Texture() {}

 public:
 static GLTFWRITERSPEC Texture *Create(GLTF *gltf,
 TextureFormat format,
 TextureTarget target,
 Sampler *sampler,
 Image *image
        );
 static GLTFWRITERSPEC Texture *Create(GLTF *gltf,
 TextureFormat format,
 unsigned int numColors,
 const unsigned char *colors,
 bool smooth = true,
 unsigned int numBands = 0,
 const float *bandLocations = 0
        );
 static GLTFWRITERSPEC Texture *Create(GLTF *gltf,
 TextureFormat format,
 unsigned int width,
 unsigned int height,
 unsigned char *data
        );
    };

} } }

#endif
```
