Results 1 to 5 of 5

Thread: Graphical Text Input Boxes

  1. #1
    Member Newbie
    Join Date
    Mar 2012
    Location
    Devon, England
    Posts
    40

    Graphical Text Input Boxes

    In most games there are input boxes; for example, username and password details at the start of an MMO, or entering a characters name at the start of an RPG. In previous projects I've created pop-up dialog boxes to do this, but these are pop-up windows and not actually in the opengl window. How do I create these in-window text input boxes?

    Thanks,
    Rowan.
    Help Me [img]<<GRAEMLIN_URL>>/smile.gif[/img]

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,117
    You have to roll your own - OpenGL is not a gui. This might help http://gigi.sourceforge.net/

  3. #3
    Member Newbie
    Join Date
    Mar 2012
    Location
    Devon, England
    Posts
    40
    Thanks, GiGi looks like the sort of library I was after. Only problem is, It needs the file boost/serialization/is_abstract.hpp. I'm using boost 1.52.0 and I can't see the file. Do I need an older version of boost?
    Help Me [img]<<GRAEMLIN_URL>>/smile.gif[/img]

  4. #4
    Member Newbie
    Join Date
    Mar 2012
    Location
    Devon, England
    Posts
    40
    Ok, in the GiGi documentation they use boost 1.34. I downloaded this and tried to compile my program with it. I got the error
    error C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE<x>'
    Also, in the output window, for each file compiled it says
    Unknown compiler version - please run the configure tests and report the results
    Is this because It's an older version of boost? In which case, how can I compile it?
    Help Me [img]<<GRAEMLIN_URL>>/smile.gif[/img]

  5. #5
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,117
    I don't actually use this, I just collected it along the way, but you do have all the source so it can't be hard to upgrade the code to support the version of boost you are using.

Similar Threads

  1. alphanumeric text boxes opengl
    By technologist in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 01-15-2018, 12:10 PM
  2. Heads up display (HUD) dynamic text input
    By ngc1729 in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 08-18-2011, 01:21 PM
  3. Code for getting text input in OpenGL
    By PhoenixByte in forum OpenGL: Windows
    Replies: 2
    Last Post: 03-09-2005, 04:57 AM
  4. Text Input using OpenGL/GLUT and C
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-14-2003, 09:08 AM
  5. input text
    By clogon in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-09-2002, 11:55 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