Archived

This topic is now archived and is closed to further replies.

NN

Console w/o GLUT?

Recommended Posts

Anyone know how to make a dropdown console (like on Nate''s Page) without using GLUT?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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...)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster

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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites