PDA

View Full Version : help



dinara
08-26-2009, 11:50 AM
Hi!

I need some help, I wnat to display a 2D raw image using OpenGL. I already have the data allocated in memory. Each pixel
is represented by 4 bytes (or a float). I just want to display
the image within a window. I am using visual C++.

Could somebody help me :eek:

Simon Mihevc
08-27-2009, 03:09 AM
Load your data as a texture then render a textured quad the size of your window. There's tons of tutorials on the details, for example
http://www.nullterminator.net/gltexture.html