Thread: loading images in open gl

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    196

    loading images in open gl

    ive been looking throught and all i can find is making triangles and squares nothing about loading images can anyone help

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    903
    Read about loading textures. You might want to google "NeHe".

  3. #3
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    OpenGL is a graphical rendering API. It has no support for loading images or anything of that nature. You need to write your own loader or use an image loading library.

  4. #4
    Registered User
    Join Date
    Sep 2005
    Posts
    196
    image loading library ?do you know any good ones im looking on google now

  5. #5
    Dump Truck Internet valis's Avatar
    Join Date
    Jul 2005
    Posts
    357
    devil

  6. #6
    Registered User
    Join Date
    Sep 2005
    Posts
    196
    holy crap thats the exact one i saw on my google search that i chose before i even saw your post it really must be good

  7. #7
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    499
    Head over to www.wotsit.org to get loaders for just about any image format (including models).

  8. #8
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071
    You'll be better off in the long-run writing a loader yourself the first time, then using a library after you understand it better (IMHO).
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

  9. #9
    Registered User
    Join Date
    Sep 2005
    Posts
    196
    im looking at allegro right now but how do i create my own image loader?

  10. #10
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    499
    im looking at allegro right now but how do i create my own image loader?
    Re-read my previous post.

    Wotsit also gives image file specifications, so it isn't totally a non-learning experience.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. open gl newbie issues
    By phil_drew in forum Windows Programming
    Replies: 3
    Last Post: 10-30-2003, 03:26 PM
  2. Dx, Sdl, Open-gl
    By dayknight in forum Game Programming
    Replies: 26
    Last Post: 12-28-2002, 02:17 PM
  3. Loading .jpg images from a file
    By Echidna in forum Windows Programming
    Replies: 4
    Last Post: 04-20-2002, 03:09 PM
  4. Loading images other than Bitmaps
    By Garfield in forum Windows Programming
    Replies: 18
    Last Post: 02-06-2002, 05:35 PM
  5. loading images
    By massive_attack in forum C++ Programming
    Replies: 2
    Last Post: 01-08-2002, 06:45 PM