Sampler::Loader::Loader(Sampler &s):
DataFile::ObjectLoader<Sampler>(s)
{
+ add("compare", &Loader::compare);
add("filter", &Loader::filter);
add("mag_filter", &Loader::mag_filter);
add("max_anisotropy", &Loader::max_anisotropy);
add("wrap_t", &Loader::wrap_t);
}
+void Sampler::Loader::compare(Predicate c)
+{
+ obj.set_compare(c);
+}
+
void Sampler::Loader::filter(TextureFilter f)
{
obj.set_filter(f);
private:
void init();
+ void compare(Predicate);
void filter(TextureFilter);
void mag_filter(TextureFilter);
void max_anisotropy(float);