50 FT_nearest_mipmap_nearest,
53 FT_linear_mipmap_nearest,
56 FT_nearest_mipmap_linear,
60 FT_linear_mipmap_linear,
87 INLINE
void set_wrap_u(WrapMode wrap);
88 INLINE
void set_wrap_v(WrapMode wrap);
89 INLINE
void set_wrap_w(WrapMode wrap);
90 INLINE
void set_minfilter(FilterType filter);
91 INLINE
void set_magfilter(FilterType filter);
92 INLINE
void set_anisotropic_degree(
int anisotropic_degree);
93 INLINE
void set_border_color(
const LColor &color);
94 INLINE
void set_min_lod(PN_stdfloat min_lod);
95 INLINE
void set_max_lod(PN_stdfloat max_lod);
96 INLINE
void set_lod_bias(PN_stdfloat lod_bias);
98 INLINE WrapMode get_wrap_u()
const;
99 INLINE WrapMode get_wrap_v()
const;
100 INLINE WrapMode get_wrap_w()
const;
101 INLINE FilterType get_minfilter()
const;
102 INLINE FilterType get_magfilter()
const;
103 FilterType get_effective_minfilter()
const;
104 FilterType get_effective_magfilter()
const;
105 INLINE
int get_anisotropic_degree()
const;
106 INLINE
int get_effective_anisotropic_degree()
const;
107 INLINE
const LColor &get_border_color()
const;
108 INLINE PN_stdfloat get_min_lod()
const;
109 INLINE PN_stdfloat get_max_lod()
const;
110 INLINE PN_stdfloat get_lod_bias()
const;
112 MAKE_PROPERTY(wrap_u, get_wrap_u, set_wrap_u);
113 MAKE_PROPERTY(wrap_v, get_wrap_v, set_wrap_v);
114 MAKE_PROPERTY(wrap_w, get_wrap_w, set_wrap_w);
115 MAKE_PROPERTY(minfilter, get_minfilter, set_minfilter);
116 MAKE_PROPERTY(magfilter, get_magfilter, set_magfilter);
117 MAKE_PROPERTY(effective_minfilter, get_effective_minfilter);
118 MAKE_PROPERTY(effective_magfilter, get_effective_magfilter);
119 MAKE_PROPERTY(anisotropic_degree, get_anisotropic_degree, set_anisotropic_degree);
120 MAKE_PROPERTY(effective_anisotropic_degree, get_effective_anisotropic_degree);
121 MAKE_PROPERTY(border_color, get_border_color, set_border_color);
122 MAKE_PROPERTY(min_lod, get_min_lod, set_min_lod);
123 MAKE_PROPERTY(max_lod, get_max_lod, set_max_lod);
124 MAKE_PROPERTY(lod_bias, get_lod_bias, set_lod_bias);
126 INLINE
bool uses_mipmaps()
const;
127 INLINE
static bool is_mipmap(FilterType type);
129 static std::string format_filter_type(FilterType ft);
130 static FilterType string_filter_type(
const std::string &str);
132 static std::string format_wrap_mode(WrapMode wm);
133 static WrapMode string_wrap_mode(
const std::string &str);
135 INLINE
bool operator == (
const SamplerState &other)
const;
136 INLINE
bool operator != (
const SamplerState &other)
const;
137 INLINE
bool operator < (
const SamplerState &other)
const;
149 void output(std::ostream &out)
const;
150 void write(std::ostream &out,
int indent)
const;
153 LColor _border_color;
154 PN_stdfloat _min_lod;
155 PN_stdfloat _max_lod;
156 PN_stdfloat _lod_bias;
161 FilterType _minfilter : 4;
162 FilterType _magfilter : 4;
163 WrapMode _wrap_u : 4;
164 WrapMode _wrap_v : 4;
165 WrapMode _wrap_w : 4;
166 int _anisotropic_degree : 12;
171 void write_datagram(
Datagram &destination)
const;
178 static void init_type() {
181 TypedObject::get_class_type());
This is a special class object that holds a handle to the sampler state object given by the graphics ...