Results 1 to 3 of 3

Thread: GLUT + console window for simple I/O

  1. #1
    Guest

    GLUT + console window for simple I/O

    Hello,

    I need to use GLUT, but I need some sort of test window so I can do printf/scanf or cout/cin. In other words, my OpenGL program needs to have a command-line interface.

    It also needs to be very platform-independant. I want to be able to recompile for Mac OS X, AIX, or Linux.

    Any suggestions??

    Thanks.

  2. #2
    Member Contributor bsperlin's Avatar
    Join Date
    Feb 2001
    Location
    VA
    Posts
    67

    Re: GLUT + console window for simple I/O

    In VC++, when you make a project with a console window and then use glut you have both. printf goes to the console window. Can you do the same in linux??

  3. #3
    Senior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Vancouver BC Canada
    Posts
    417

    Re: GLUT + console window for simple I/O

    Can you do the same in linux??
    Are you serious?

    Of course you can.

    The console is a central piece of any Unix architecture. You always have access to the standard IO stream (stdin, stdout and stderr), no matter what "kind" of application you are making (Linux doesn't distinguish between "GUI" and "console" apps like Winblows does).

Similar Threads

  1. restore control to console from GLUT window
    By SARVPRIYE SONI in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 06-15-2011, 04:46 PM
  2. Creating a GLUT window using a console application
    By Psiborg in forum OpenGL: General
    Replies: 1
    Last Post: 06-16-2006, 11:06 PM
  3. How to hide/show console window when using glut
    By job in forum OpenGL: General
    Replies: 6
    Last Post: 08-11-2004, 05:46 AM
  4. Getting rid of GLUT console window
    By harsman in forum OpenGL: macOS
    Replies: 1
    Last Post: 05-13-2002, 04:26 PM
  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