0

我正在为我正在开发的游戏编写图像类,并且我需要使用与其他过滤器不同的过滤器渲染一些图像,有没有办法将 OpenGL 过滤器(GL_LINEAR、GL_NEAREST 等)保存在变量中?

4

1 回答 1

0

Well of course it is possible. But you can use any value you like, as long as you use the right token when doing the call to glTexParameteri for actually setting the filter before commencing drawing with the texture in question. In later versions of OpenGL you can also use sampler objects to encapsulate a set of filtering settings.

于 2012-10-27T13:01:15.007 回答