Solved

Drawing an image into a scene

Posted on 2006-06-20
3
1,100 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
RTS server listeners separate Threads, or one Listener? 20 159
Network game - UDP safety concerns? 10 266
Are cloned java char[][] objects totally new? 3 100
count7 challenge 12 104
What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

864 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

23 Experts available now in Live!

Get 1:1 Help Now