This is for a 2D game with OpenGL:
Can OpenGL be used to display textures that are completely unfiltered, not stretched, or blurred?
So, when I have BMP and convert it to an OpenGL texture, and then extract that texture and convert it back, do I have any changes or loss of quality / data?
Of course, just turn off the filtering that was done by setting GL_MIN_FILTER and GL_MAG_FILTER to GL_NEAREST. Also make sure that you draw the texture in the appropriate size so that the texels are the same size as the pixels.
, GL_MIN_FILTER GL_MAG_FITLER GL_NEAREST ( glTexParameter*).
GL_MIN_FILTER
GL_MAG_FITLER
GL_NEAREST
glTexParameter*
, , : , -. - GL_TEXTURE_RECTANGLE GL_TEXTURE_2D. (0..1.0..1), , (0..w, 0..h). .
GL_TEXTURE_RECTANGLE
GL_TEXTURE_2D
Source: https://habr.com/ru/post/1769305/More articles:How to get the generic type used in generic IEnumerable in .net? - reflectionHide source code in PHP GTK - phpMaven for different profiles - maven-2MySQL error? Where is the syntax error? - sqlWSDoAllReceiver: incoming message does not contain the required security header - javaHow to access form data after submitting - javaHow to make some of my datagridcolumn not editable or readonly if my flexible datagrid is editable - flexHow can I associate an IBAction event with an image? - objective-cGarbage collection inside lock object - garbage-collectionProblem with weird pointer - cAll Articles