Results 1 to 4 of 4

Thread: Console in glut?

  1. #1

    Console in glut?

    Im trying to make a console sortof thing with glut, is that a bad ide?
    I started out to make a subwindow for it and such, but perhaps thats not a good ide because the mainwindow will be effected?
    Will be glad for help to build a console in a opengl app.

    regards Nergal
    regards Nergal

  2. #2
    Member Contributor
    Join Date
    May 2003
    Location
    Cologne / Germany
    Posts
    66

    Re: Console in glut?

    Why using a sencond Window ? I created my Console ontop of the rendering window and i can switch it on or off by hitting F12. Make it transparent and you will have no problems with multiple windows.

    cu
    Tom

  3. #3

    Re: Console in glut?

    Seems like a good idee. I got this subwindow thing to work now, but still got some problems with the regeneration of the window after destruction. Anyway...
    How did u solve the issue for input of text, or dont u have a command console?

    /Nergal
    regards Nergal

  4. #4
    Member Contributor
    Join Date
    May 2003
    Location
    Cologne / Germany
    Posts
    66

    Re: Console in glut?

    The Input i use is very simple. I use the keyboard function call from GLUT and check if Console.activ is true or false and if it is true i do not use the normal shortcuts, but send the char to Console.AppendChar. Than you just have to add some stuff like the Del-key, but it is no prob. I think this is the most simple way.

    cu
    Tom

Similar Threads

  1. Glut in Console
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-16-2003, 04:41 AM
  2. writing on console when using glut
    By Vlasko in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 03-11-2003, 05:26 AM
  3. Getting rid of GLUT console window
    By harsman in forum OpenGL: macOS
    Replies: 1
    Last Post: 05-13-2002, 04:26 PM
  4. SIOUX console & GLUT
    By in forum OpenGL: macOS
    Replies: 4
    Last Post: 08-31-2001, 06:00 AM
  5. Get rid of console window with glut.
    By Humus in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-21-2001, 06:23 PM

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