Results 1 to 5 of 5

Thread: Loading Images? Help! I'm moving my VB OpenGL project to C++

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2002
    Location
    Perth, WA, Australia
    Posts
    6

    Loading Images? Help! I'm moving my VB OpenGL project to C++

    I've been programming OpenGL for quite some time, but I've been doing so in VB.

    For loading and manipulating images I have writen my own classes - in VB - but can't use them any more.

    Can some one tell me how to load images in C for use with OpenGl, preferable without having to deal with file handles and streams and such.

    p.s I cannot use GLUT through Borland VC++ because I am missing the file "winmm.lib" and cannot find it anywhare.
    If you could read my mind, you'd kill me out of pity!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Dec 2007
    Posts
    1,077

    Re: Loading Images? Help! I'm moving my VB OpenGL project to C++

    Check out DevIL, its a library for loading images of various formats.
    http://openil.sourceforge.net/

  3. #3
    Guest

    Re: Loading Images? Help! I'm moving my VB OpenGL project to C++

    How do you think you are going to load *anything* without file I/O?

    It isn't that hard, and there are tons of tutors available. Check www.google.com.

  4. #4
    Junior Member Newbie
    Join Date
    Apr 2002
    Location
    Perth, WA, Australia
    Posts
    6

    Re: Loading Images? Help! I'm moving my VB OpenGL project to C++

    Originally posted by MagMan:
    How do you think you are going to load *anything* without file I/O?

    It isn't that hard, and there are tons of tutors available. Check www.google.com.
    Sorry, I was a little unclear. I simply meant; so that "I" don't have to deal with file I/O for images as, presumably, people have already written class (and API's) to do exactly that. It's mostly because I'm a slack *******, but also because I will never get the same results as people who have worked on that specifically, I'd rather stand on their shoulders for this, and concentrate more on other aspects of my project.
    If you could read my mind, you'd kill me out of pity!

  5. #5
    Senior Member Regular Contributor
    Join Date
    Sep 2001
    Location
    Eastern USA
    Posts
    218

    Re: Loading Images? Help! I'm moving my VB OpenGL project to C++

    DevIL is very useful, I've used it a few times, but I wish they'd just pick a name and stick with it!

    I've seen no less than four variations on the title.

Similar Threads

  1. Loading Images with TR - OpenGL Tile Rendering library?
    By rakeshthp in forum OpenGL: Advanced Coding
    Replies: 8
    Last Post: 07-22-2013, 07:49 AM
  2. Opengl - Loading .png images
    By shawn619 in forum OpenGL: Basic Coding
    Replies: 14
    Last Post: 03-20-2012, 02:26 AM
  3. loading images into OpenGL
    By ni-resist in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-24-2010, 03:35 PM
  4. how project images on a plane surface?
    By Mastero in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-02-2004, 08:29 AM
  5. Replies: 8
    Last Post: 12-01-2003, 08:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean