Console w/o GLUT?
Anyone know how to make a dropdown console (like on Nate''s Page) without using GLUT?
April 25, 2001 08:30 AM
um, have a console state (up/down/rising/falling), have a semitransperant box for the consol bgr, put text over the box (translated by the box position if rising or falling), and use nehe key handling to manange what letters have been entered. Then store previouse commands in a set of strings or char*''s. What else is there to know?
-Alex
-Alex
I haven''t seen Nates console demo, but what does GLUT have to do with the console itself? It seems if a console class is written properly, the underlying windowing subsystem would remain transparent.
Most of the work involved with a console is parsing the text entered. Is your question more generally pertaining to input in a WIN32 environment?
Ben.
Most of the work involved with a console is parsing the text entered. Is your question more generally pertaining to input in a WIN32 environment?
Ben.
I''m trying not to use GLUT, because It seems you can only use it in Windows...I''m trying to AVOID all windows-specific stuff...like DX.
April 25, 2001 09:01 AM
Hi!
GLUT is NOT platform-dependent. There are versions for Linux/Unix, too. (In fact, I think it was first developed for these Platforms and then ported to Windows...)
GLUT is NOT platform-dependent. There are versions for Linux/Unix, too. (In fact, I think it was first developed for these Platforms and then ported to Windows...)
April 25, 2001 08:02 PM
Platform independence was the actual reason for the development of GLUT. It was meant to be a library that hides _all_ platform specific code from the user, so that your programm would remain 100% portable.
-JL
April 25, 2001 10:59 PM
yep, I have a friend using it on mac, another on Win32, another on unix. Ah the wonders of glut. Oh yea, and a console class is not effected by the window system you use (other than winH/winW maybe). But that can be recorded with any meathod of window creation.
I actually posted on a similar thread to this a while ago and didn''t find out if it helped . NEway. I have made a console class and a readme.txt on how to put it into ure program and how to add more commands easily. It might not be efficient or anything but it works for me. Heres a link:
just the console class
my project which uses it
Hope that helps!
baldurkarlsson
just the console class
my project which uses it
Hope that helps!
baldurkarlsson
That''s why I posted, baldurk. I read ur post and d/l''d it. The console class didn''t work, so I posted here.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement