I have some big (for me) trouble! Belive or not - it is a question of life and death for me!
How can I render a quad with texture with accurate smoothing (may be totally without smoothing… …with 100% scale…)???
That it has as a result turned out also as after glDrawPixels… I need exactly this result, but without this function… I know that is possible! But how?
Anyone hears about GLScene??? It’s a visual components lib for working with OpenGL in Delphi… This library have TGLHUDSprite and TGLHUDText components… And TGLHUDText renders texture without smoothing!!! (in 100% scale)
Please! PLEASE!!! PP-LL-EE-AA-SS-EE!!!
HELP ME!!! If you can…
Use orthographic projection and draw a quad in the correct size. To make that easier, make the view frustum size match your window resolution. Then you can specify your quad size/position in pixels.
Yeah… Yeah… glOrtho… Correct size… I know this… But problem was not here!
I load a non power of two textures and use gluScaleImage function… And it was wrong! As a result there was a smoothing! It was my own oversight. :rolleyes:
Now I use my own function and enlarge size of texture with adding transparent borders (not scaling). And with that - all forks fine…