> ## 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.

# GLTFAttribute.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_GLTFATTRIBUTE__
#define __INCLUDED_GLTF_GLTFATTRIBUTE__

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

namespace ANSYS { namespace AVZ { namespace GLTFWriter {
 class GLTF;
 class Buffer;

 class Attribute : public Object
    {
 public:
 enum AttributeType
        {
//            AT_BYTE = 5120,
//            AT_SHORT = 5122,
//            AT_UNSIGNED_SHORT = 5123,
 AT_INT = 5124,
//            AT_UNSIGNED_INT = 5125,
 AT_FLOAT = 5126,
 AT_FLOAT_VEC2 = 35664,
 AT_FLOAT_VEC3 = 35665,
 AT_FLOAT_VEC4 = 35666,

 AT_FLOAT_MAT4 = 35676
        };

 protected:
 virtual ~Attribute() {}

 public:
 static GLTFWRITERSPEC Attribute *Create(GLTF *gltf,
 const char *name,
 AttributeType type,
 unsigned int count,
 const int *data,
 Buffer *buffer = 0
        );
 static GLTFWRITERSPEC Attribute *Create(GLTF *gltf,
 const char *name,
 AttributeType type,
 unsigned int count,
 const float *data,
 Buffer *buffer = 0
        );
 static GLTFWRITERSPEC Attribute *CreatePosition(GLTF *gltf,
 unsigned int count,
 const float *data,
 Buffer *buffer = 0
        );
 static GLTFWRITERSPEC Attribute *CreateColor(GLTF *gltf,
 AttributeType type,
 unsigned int count,
 const float *data,
 Buffer *buffer = 0
        );
 static GLTFWRITERSPEC Attribute *CreatePointSize(GLTF *gltf,
 unsigned int count,
 const float *data,
 Buffer *buffer = 0
        );
 static Attribute* CreateDisplacementScale(GLTF* gltf,
 unsigned int count,
 const float* data,
 Buffer* buffer = 0
        );
 static GLTFWRITERSPEC Attribute *CreateNormal(GLTF *gltf,
 unsigned int count,
 const float *data,
 Buffer *buffer = 0
        );
 static GLTFWRITERSPEC Attribute *CreateTextureCoord(GLTF *gltf,
 unsigned int num,
 unsigned int count,
 const float *data,
 Buffer *buffer = 0
        );

        GLTFWRITERSPEC virtual bool SetMinMax(AttributeType type,
 const int *mn,
 const int *mx
        ) = 0;
        GLTFWRITERSPEC virtual bool SetMinMax(AttributeType type,
 const float *mn,
 const float *mx
        ) = 0;
        GLTFWRITERSPEC virtual void SetLogarithmic(bool log
        ) = 0;
    };

} } }

#endif
```
