cginternals / globjects

C++ library strictly wrapping OpenGL objects.
https://globjects.org
MIT License
538 stars 59 forks source link

Sampler::setParameter cannot take vector value #350

Closed itsuhane closed 7 years ago

itsuhane commented 7 years ago

Sampler class doesn't implement interface for glSamplerParameter[if]v and glSamplerParameterI[i ui]v.

I was trying to set GL_TEXTURE_BORDER_COLOR, which is impossible with Sampler.

scheibel commented 7 years ago

I opened a PR adding the interface to set 4-component vectors of type float, int or unsigned int as parameter values on a Sampler (#351). This should suffice to set the texture border color on a sampler.