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

# GLTFSampler.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_GLTFSAMPLER__
#define __INCLUDED_GLTF_GLTFSAMPLER__

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

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

 class Sampler : public Object
    {
 public:
 enum FilterType
        {
 FT_NEAREST = 9728,
 FT_LINEAR = 9729,
 FT_NEAREST_MIPMAP_NEAREST = 9984,
 FT_LINEAR_MIPMAP_NEAREST = 9985,
 FT_NEAREST_MIPMAP_LINEAR = 9986,
 FT_LINEAR_MIPMAP_LINEAR = 9987
        };
 enum WrapType
        {
 WT_REPEAT = 10497,
 WT_CLAMP_TO_EDGE = 33071,
 WT_MIRRORED_REPEAT = 33648
        };

 protected:
 virtual ~Sampler() {}

 public:
 static GLTFWRITERSPEC Sampler *Create(GLTF *gltf,
 FilterType minFilter,
 FilterType magFilter,
 WrapType wrapS,
 WrapType wrapT
        );
    };

} } }

#endif
```
