Does anyone know how to load and display a bitmap image with glut using C++?
Does anyone know how to load and display a bitmap image with glut using C++?
Last edited by dorkes_malorkes; 06-09-2007 at 07:00 PM.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Does it really matter how someone asks a question, as long as you understand what the question is and have an answer you should be able to help them. And if you do know how to load a bitmap image using C++ with GLUT, I would greatly appreciate the knowledge.
If you're not really concerned with the inner workings and optimization of gl textures, I would take a look at devil. It has a few really easy functions for loading all kinds of image encodings.
Illusion and reality become impartiality and confidence.
Understanding the question isn't the problem, I can parse English grammar quite well thanks.
Figuring out what you really want however was, and still is, impossible.
There is no indication of say
- what your skill in C++ is,
- what your skill in GLUT is,
- what your knowledge of graphics file formats might be,
- which OS/Compiler you happen to be using.
Then there's the "goldilocks" problem in that answers which guess your skill level are either
- too simple - your response is "no ........ sherlock, I knew that already"
- too complicated - your response is "woah, back up Einstein"
- just right - your response might be "just right, thanks"
I'm not going to spend my time producing a complete answer just on the off chance it might, just might meet your needs.
So show what you know already, then we can focus on what is really bugging you with the problem.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Most people don't -really- know what they want for one, and maybe what you really need isn't what you think it is. It seems people expect others to read their minds, as if we can just pick one of a thousand different aspects 'simple' questions can cover.
Yes. It does. How else can we get to understanding, then help you? You're assuming we can 'figure out' what "the question is" -really-. I don't like to assume, personally, I try to avoid doing it at all.Does it really matter how someone asks a question,as long as you understand what the question is and have an answer you should be able to help them.
You need to understand the subtle differences that exist in how you approach technical problems, apparently there's more to everything than you realize, consider that.
I just felt like adding to this since it's a personal pet peeve.