- unsigned id;
- const Texture *owner;
- TextureFilter min_filter;
- TextureFilter mag_filter;
- float max_anisotropy;
- TextureWrap wrap_s;
- TextureWrap wrap_t;
- TextureWrap wrap_r;
- bool compare;
- Predicate cmp_func;
- mutable int dirty_params;
-
-public:
- Sampler();
- Sampler(const Texture &);
-private:
- void init();
+ TextureFilter min_filter = NEAREST_MIPMAP_LINEAR;
+ TextureFilter mag_filter = LINEAR;
+ float max_anisotropy = 1.0f;
+ TextureWrap wrap_s = REPEAT;
+ TextureWrap wrap_t = REPEAT;
+ TextureWrap wrap_r = REPEAT;
+ Color border_color = { 0.0f, 0.0f, 0.0f, 0.0f };
+ bool compare = false;
+ Predicate cmp_func = LEQUAL;
+ mutable int dirty_params = 0;