How to disable the texture blur effect using OpenGL?

I use Texture-Mapped fonts in my OpenGL program. I painted very simple fonts in a bitmap (each letter has 5x7 pixels, white on a black background). When displayed on a quad-core processor that has more than a few pixels, OpenGL does some work to make the image smooth. Is there an easy way to get rid of this blur effect temporarily?

+3
source share
1 answer

Give it a try glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST ).

+9
source

Source: https://habr.com/ru/post/1767567/


All Articles