views:

38

answers:

1

This is for a 2D game with OpenGL:

Is it with using OpenGL possible to display a texture absolutely unfiltered, not streched or blurred?

So that when I have a BMP and convert it into an OpenGL texture, and then retrieve that texture and convert it back, I have no modifications or quality / data loss?

+4  A: 

Sure, just disable filtering, that's made by setting the GL_MIN_FILTER and the GL_MAG_FILTER to GL_NEAREST. Also make sure that you draw the texture in a appropiate size so that texels are the same size as pixels.

Matias Valdenegro