Solved

Drawing an image into a scene

Posted on 2006-06-20
3
1,092 Views
Last Modified: 2013-12-06
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
0
Comment
Question by:chrishughes
3 Comments
 
LVL 2

Accepted Solution

by:
davidnsc1 earned 125 total points
ID: 16987935
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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now