X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fsampler.h;h=bd8db31fdc8f9601f5ac2ac55e9762cead38fef4;hb=3bc34893905a2df622894aadcb6669f27f186772;hp=852c971003359bb7d0f0341dd97becef7242017d;hpb=2e09b4f72f06537431151fe8b2574e1aa886ad48;p=libs%2Fgl.git diff --git a/source/core/sampler.h b/source/core/sampler.h index 852c9710..bd8db31f 100644 --- a/source/core/sampler.h +++ b/source/core/sampler.h @@ -3,8 +3,8 @@ #include #include "color.h" -#include "gl.h" #include "predicate.h" +#include "sampler_backend.h" namespace Msp { namespace GL { @@ -61,9 +61,9 @@ for magnification and NEAREST_MIPMAP_LINEAR for minification. If texture coordinates fall outside of the principal range of the texture, wrapping is applied. The default for all directions is REPEAT. */ -class Sampler +class Sampler: public SamplerBackend { - friend class PipelineState; + friend SamplerBackend; public: class Loader: public DataFile::ObjectLoader @@ -98,7 +98,6 @@ private: COMPARE = 128 }; - unsigned id; TextureFilter min_filter; TextureFilter mag_filter; float max_anisotropy; @@ -154,13 +153,11 @@ public: void refresh() const { if(dirty_params) update(); } - void set_debug_name(const std::string &); + using SamplerBackend::set_debug_name; }; bool is_mipmapped(TextureFilter); -GLenum get_gl_filter(TextureFilter); -GLenum get_gl_wrap(TextureWrap); void operator>>(const LexicalConverter &, TextureFilter &); void operator>>(const LexicalConverter &, TextureWrap &);