Thread: Adding Fields to your OpenGL GUI

  1. #1
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968

    Adding Fields to your OpenGL GUI

    I want this...

    Name:______ <-- can type there...

    but I can't find it anywhere on the internet, and trust me, i've looked, can anyone give some helpful insight?

  2. #2
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    You need to use an addon for OpenGL to get fields.

    Check my post in the pinned topic in this forum, under Addons for OpenGL:

    http://cboard.cprogramming.com/showt...t=33318&page=2

    I recommend FLTK for applications, Qt or freeGLUT or GLUT for games.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  3. #3
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    Thanks alot dae, its for a game, so i guess i'll just try GLUT...

  4. #4
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    One main question though, how would i even begin to imagine how to implement this into my current project?

  5. #5
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    So you know GLUT is no longer being updated (since like 1999) so its okay for personal projects but not the real thing, and it doesnt suppose sliders I dont think.

    Impliment it? include the library, and use the functions from it where necessary, I think? whatcha mean
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  6. #6
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    Guess it was kindof a silly question, i just downloaded the source stuff and there was like a million files.... intimidated a bit...

    Alright, i'll use freeGLUT then, since it's being updated n stuff currently...

    I would assume the website would teach me a bit on how to use the libraries?

    AHHH its a .tar, wtf do i do with this?

    How do I open it? lol, call me a noob...
    Last edited by Shamino; 09-25-2005 at 02:29 AM.

  7. #7
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    Okay okay, I've got the files built, dll's and libs....

    now, I need to include the dll's AND the libs to my project? or just the libs? or just the DLL's?

    This is a major issue I think alot of people might have, possibly moved to the faq thingy? where like, some noob asks

    How do I add fields to my OpenGL gui?

    and you could be all like, checkout the faq noob....

  8. #8
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    Are there any tutorials on freeGLUT or GLUT out there? since theyre BASICALLY the same, either one would work i suppose

  9. #9
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  10. #10
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    GLUT doesn't support text fields. It does windowing, menu's, and IO. There are other multiplatform GUI packages that use opengl though, GLUI is one. Google and you'll probably find a bunch of them.

  11. #11
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    does freeGLUT?

    or QT?

  12. #12
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    freeGLUT is an open source implementation of the GLUT API. QT is a widget library. It supports all kinds of GUI widgets, but its not a rendering library... you can't do arbitrary rendering with it like opengl.

  13. #13
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    so, what do I use?

    I want something graphical, that fits right inside my openGL gui, that doesnt look like a windows program...

  14. #14
    C maniac
    Join Date
    Aug 2004
    Location
    Cyberwarping to Middle Earth
    Posts
    154
    You can write your own code, use the Win32 SDK, but that looks like windows, you can use another library, like GLUI, or stop the idea (just kidding ).

  15. #15
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    so you want me to write from scratch commands for 256 keyboard keys? That'd be like, insane....

    make each individual key find the 'A' on my ill bitmap font file...
    and then write it onto the screen... That'd be like, a million years...

    how do people get little things that let you write your freakin name when ur saving a game, or when you get the high score, or when.... you get my point!!

    Like, seriously, i can't believe no one can give a simple answer, 'oh, this is what you need....'

    meh...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Lists: adding fields (not nodes) & more
    By Mariano L Gappa in forum C++ Programming
    Replies: 15
    Last Post: 11-09-2005, 07:26 PM
  2. Adding functionality to controls on a GUI
    By earth_angel in forum Windows Programming
    Replies: 3
    Last Post: 06-19-2005, 09:31 PM
  3. Adding functionality to controls on a GUI
    By earth_angel in forum C++ Programming
    Replies: 3
    Last Post: 06-16-2005, 01:35 PM
  4. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  5. adding a VB gui
    By DMaxJ in forum C++ Programming
    Replies: 2
    Last Post: 02-10-2003, 09:35 AM