Drawing an image into a scene

I am writing a basic openGL application which at the moment simply draws a cube. I have an image stored in memory as an array of pixel values. is it possible to draw this image into my window?

Thanks

Chris
chrishughesAsked:
Who is Participating?
 
davidnsc1Connect With a Mentor Commented:
Either write it directly to the screen with glDrawPixels, or make it into a texture with glTexImage2D or gluBuild2DMipmaps.  There's probably a toutorial on it somewhere at http://nehe.gamedev.net
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.