Solved

Drawing an image into a scene

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
assassins creed companion app 4 on XBOX ONE? 2 563
Unity 3D Lighting 1 87
Java - are methods called from within a Thread threaded? 2 65
Compile GLUT with Visual Studio 2015 1 149
Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

832 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