Skip to main content
GameDev.net gamedev.net
🔒 Locked

glDrawPixels

Started by klems Jan 18, 2003 at 11:06 AM 4 replies 250+ views
Original Post
klems
klems
The OpenGL red book reccomends glDrawPixels if you want to draw a 2D image in OpenGL, but I recall hearing some people here on GDNet saying that the glRead/DrawPixels functions are really slow. Was that only for glReadPixels, or should I use some other way to draw 2D stuff?
I tolerate no intolerance!
Halo7
Halo7
I have found it faster to texture a quad than use glDrawPixels.

Halo7
klems
klems
I figured that too, but then the texture filtering comes into play, chich can seriously mess up low-res images. How can I avoid the filtering screwing my low-res images up?



I tolerate no intolerance!
Brother Bob
Brother Bob
If you''re talking about the image getting blurry, set magnification filtering to GL_NEAREST.
klems
klems
OK, thanks!



I tolerate no intolerance!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.