dirty_params |= MAX_ANISOTROPY;
}
-void Sampler::set_wrap(TextureWrap w)
-{
- set_wrap_s(w);
- set_wrap_t(w);
- set_wrap_r(w);
-}
-
void Sampler::set_wrap_s(TextureWrap w)
{
wrap_s = w;
dirty_params |= WRAP_R;
}
+void Sampler::set_wrap(TextureWrap w)
+{
+ set_wrap_s(w);
+ set_wrap_t(w);
+ set_wrap_r(w);
+}
+
void Sampler::set_border_color(const Color &c)
{
border_color = c;
than 1, filtering will consider more than than four samples when the texture
is drawn at an oblique angle. */
void set_max_anisotropy(float);
- float get_max_anisotropy() const { return max_anisotropy; }
- /** Sets the wrapping mode for all coordinates. */
- void set_wrap(TextureWrap);
+ float get_max_anisotropy() const { return max_anisotropy; }
void set_wrap_s(TextureWrap);
void set_wrap_t(TextureWrap);
void set_wrap_r(TextureWrap);
+ /** Sets the wrapping mode for all coordinates. */
+ void set_wrap(TextureWrap);
+
/** Sets the border color for CLAMP_TO_BORDER wrap mode. */
void set_border_color(const Color &);