Thread: using bmp's with glut

  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    2

    using bmp's with glut

    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.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.

  3. #3
    Registered User
    Join Date
    Jun 2007
    Posts
    2
    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.

  4. #4
    GA ichijoji's Avatar
    Join Date
    Nov 2002
    Posts
    179
    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.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.

  6. #6
    Registered User
    Join Date
    Jul 2006
    Posts
    162
    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.

    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.
    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.

    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.

  7. #7
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    Quote Originally Posted by dorkes_malorkes View Post
    as long as you understand what the question is and have an answer you should be able to help them.
    Point taken, so here is the answer to your question. Yes, someone knows how to do it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to get relative mouse coordinates when GLUT return absolute
    By joeprogrammer in forum Game Programming
    Replies: 14
    Last Post: 02-10-2009, 06:35 PM
  2. Running into trouble with GLUT.
    By Josh@Dreamland in forum C++ Programming
    Replies: 4
    Last Post: 12-29-2007, 09:32 PM
  3. Glut
    By Matty_Alan in forum C Programming
    Replies: 7
    Last Post: 07-16-2007, 07:01 AM
  4. GLUT and Dev-CPP
    By Canadian_coder in forum Game Programming
    Replies: 4
    Last Post: 12-22-2004, 03:12 AM
  5. Dis/Advantages of Glut?
    By Zeusbwr in forum Game Programming
    Replies: 1
    Last Post: 11-28-2004, 10:00 PM