Advertisement

using opengl to draw individual pixels

Started by January 10, 2001 05:16 PM
1 comment, last by PTDC 23 years, 10 months ago
how can i use opengl to draw individual pixels for things like fractals and perlin noise?
make/change the image data , upload it into a texture with glTexSubImage2D(..) and draw that texture on the screen

http://members.xoom.com/myBollux
Advertisement
there is also glDrawPixels, but usually implemented very poorly.
glBegin( GL_POINTS ) might work for you too, but changing the colours will be lots of state changes and points are usually not implemented all that fast either.



~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL
~~~Cheers!Brett PorterPortaLib3D : A portable 3D game/demo libary for OpenGLCommunity Service Announcement: Read How to ask questions the smart way before posting!

This topic is closed to new replies.

Advertisement