Images in GLUI

This is a discussion on Images in GLUI within the C++ Programming forums, part of the General Programming Boards category; Hi, Anybody knows how to insert pictures in GLUI?? To the best of my knowledge, GLUI doesn't provide any control/widget ...

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

    Images in GLUI

    Hi,

    Anybody knows how to insert pictures in GLUI?? To the best of my knowledge, GLUI doesn't provide any control/widget that handles pictures/images like in for example VB and GTK...well I hope I'm wrong.

    I am desperately searching how in the world to do that...help please!
    Thanks

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    I think it must support images in some way, because the sample screenshots on this page contain images: http://www.cs.unc.edu/~rademach/glui/

    But this documentation does not contain the word "image", so I think you're out of luck: http://www.cs.unc.edu/~rademach/glui...al_v2_beta.pdf

    You might have to use GLUT to render images.

    I don't know if this is what you're looking for or not: http://nehe.gamedev.net/lesson.asp?index=02
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    If you don't mind digging into the GLUI source code, I don't think it'd be too hard to add a control that draws an image. All of the GLUI controls are rendered with quads I believe, so you'd just have to write an image loader and texture a basic control. (I think. I haven't look at the GLUI source in a while).
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. mirroring website with images on external host
    By cyberfish in forum Tech Board
    Replies: 1
    Last Post: 09-08-2008, 06:50 PM
  2. Images
    By gvector1 in forum C++ Programming
    Replies: 7
    Last Post: 02-25-2003, 08:59 AM
  3. images, icons, and cursors, OH MY!
    By DarkViper in forum Windows Programming
    Replies: 3
    Last Post: 01-07-2003, 01:26 PM
  4. STL, Queues And Images
    By simly01 in forum C++ Programming
    Replies: 3
    Last Post: 06-24-2002, 12:31 PM
  5. A simple question on Images....
    By LonelyPlanetWa in forum C Programming
    Replies: 7
    Last Post: 05-20-2002, 07:34 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21