Results 1 to 2 of 2

Thread: Something simple in OpenGL

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2010
    Posts
    1

    Something simple in OpenGL

    I want to make a exe file with C++ including OpenGl library. All ok when i m running the exe but when i close the graphical environment that time the dos environment close also. I want to have a menu with tasks in black environment of C++ and everytime i want drawing i 'd like the graph window open, close and continue in home menu of dos environment.

  2. #2
    V-man
    Guest

    Re: Something simple in OpenGL

    That has nothing to do with GL.
    For windows, you would just make a console project with main(). I think you need to call CreateWindow (I think GLUT works that way) and setup the pixel format, render with GL.
    When the user want to close the window, just kill the window. Your console will continue to run.

    Code :
    int main()
    {
       while(1)
       {
         cin>>dowhat;
         if(dowhat==makeWindow)
            CreatWindow();
         else
            break;
       }
       cout<<user doesnt want to make another window. Quitting.
    }

Similar Threads

  1. Simple OpenGL 4.X does not run on GTX 480 but runs on ATI
    By sueyllam in forum OpenGL: Drivers
    Replies: 13
    Last Post: 08-28-2014, 05:54 AM
  2. simple opengl
    By zuyaking in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 07-03-2013, 01:07 PM
  3. help with simple OpenGL
    By learner in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-07-2011, 01:50 PM
  4. Simple OpenGL A - Z?
    By in forum OpenGL: Linux
    Replies: 10
    Last Post: 11-28-2004, 11:50 PM
  5. Simple 3D OPENGL EDITOR??
    By asd in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 06-10-2004, 09:34 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