cesium-native  0.41.0
Sampler.h
1 // This file was generated by generate-classes.
2 // DO NOT EDIT THIS FILE!
3 #pragma once
4 
5 #include "CesiumGltf/Library.h"
6 #include "CesiumGltf/NamedObject.h"
7 
8 #include <optional>
9 
10 namespace CesiumGltf {
14 struct CESIUMGLTF_API Sampler final : public CesiumGltf::NamedObject {
15  static inline constexpr const char* TypeName = "Sampler";
16 
20  struct MagFilter {
21  static constexpr int32_t NEAREST = 9728;
22 
23  static constexpr int32_t LINEAR = 9729;
24  };
25 
29  struct MinFilter {
30  static constexpr int32_t NEAREST = 9728;
31 
32  static constexpr int32_t LINEAR = 9729;
33 
34  static constexpr int32_t NEAREST_MIPMAP_NEAREST = 9984;
35 
36  static constexpr int32_t LINEAR_MIPMAP_NEAREST = 9985;
37 
38  static constexpr int32_t NEAREST_MIPMAP_LINEAR = 9986;
39 
40  static constexpr int32_t LINEAR_MIPMAP_LINEAR = 9987;
41  };
42 
46  struct WrapS {
47  static constexpr int32_t CLAMP_TO_EDGE = 33071;
48 
49  static constexpr int32_t MIRRORED_REPEAT = 33648;
50 
51  static constexpr int32_t REPEAT = 10497;
52  };
53 
57  struct WrapT {
58  static constexpr int32_t CLAMP_TO_EDGE = 33071;
59 
60  static constexpr int32_t MIRRORED_REPEAT = 33648;
61 
62  static constexpr int32_t REPEAT = 10497;
63  };
64 
71  std::optional<int32_t> magFilter;
72 
79  std::optional<int32_t> minFilter;
80 
89  int32_t wrapS = WrapS::REPEAT;
90 
97  int32_t wrapT = WrapT::REPEAT;
98 };
99 } // namespace CesiumGltf
Classes for working with glTF models.
The base class for objects in a glTF that have a name.
Definition: NamedObject.h:15
Known values for Magnification filter.
Definition: Sampler.h:20
Known values for Minification filter.
Definition: Sampler.h:29
Known values for S (U) wrapping mode.
Definition: Sampler.h:46
Known values for T (V) wrapping mode.
Definition: Sampler.h:57
Texture sampler properties for filtering and wrapping modes.
Definition: Sampler.h:14
std::optional< int32_t > magFilter
Magnification filter.
Definition: Sampler.h:71
std::optional< int32_t > minFilter
Minification filter.
Definition: Sampler.h:79