-void Sampler::set_parameter_i(unsigned param, int value) const
-{
- if(id)
- glSamplerParameteri(id, param, value);
- else if(ARB_direct_state_access)
- glTextureParameteri(owner->get_id(), param, value);
- else
- glTexParameteri(owner->get_target(), param, value);
-}
-
-void Sampler::set_parameter_f(unsigned param, float value) const
-{
- if(id)
- glSamplerParameterf(id, param, value);
- else if(ARB_direct_state_access)
- glTextureParameterf(owner->get_id(), param, value);
- else
- glTexParameterf(owner->get_target(), param, value);
-}
-
-void Sampler::set_parameter_fv(unsigned param, const float *value) const
-{
- if(id)
- glSamplerParameterfv(id, param, value);
- else if(ARB_direct_state_access)
- glTextureParameterfv(owner->get_id(), param, value);
- else
- glTexParameterfv(owner->get_target(), param, value);
-}
-