Results 1 to 6 of 6

Thread: How to create Multiple windows

  1. #1
    Guest

    How to create Multiple windows

    is it possible to create more than one window? How?

    Thanks & Regards

  2. #2
    Junior Member Newbie
    Join Date
    Apr 2002
    Location
    Perth, WA, Australia
    Posts
    6

    Re: How to create Multiple windows

    Yes... but how depends on what your using to create your first one. And what language your using...etc.

    Answer these:
    Are you using C/VB/DELPHI/OTHER?
    Are using GLUT to handle your windows?
    Are you using Win32 calls?
    If you could read my mind, you'd kill me out of pity!

  3. #3
    Guest

    Re: How to create Multiple windows

    >Are you using C/VB/DELPHI/OTHER?
    I'm using VC++ 6

    >Are using GLUT to handle your windows?
    yes.

    Thanks

  4. #4
    Junior Member Newbie
    Join Date
    Apr 2002
    Location
    Grande Prairie, Alberta, Canada
    Posts
    9

    Re: How to create Multiple windows

    afaik, the function glutCreateWindow() can be called multiple times, once per window. It returns an integer that "is a unique identifier for the window".

    I'm not sure what the function is, but there's a function that is something like glutSetWindow() or something that takes an integer argument that i believe would be the integer returned by glutCreateWindow() - which would mean you'd have to save those numbers into a global variable for later use.

    Something like that, at least.

  5. #5
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: How to create Multiple windows

    >>glutCreateSubWindow creates a subwindow of the window identified by win of size width and height at location x and y within the current window. Implicitly, the current window is set to the newly created subwindow.<<

    i believe theres an example/s that come with glut

  6. #6
    Junior Member Newbie
    Join Date
    Apr 2002
    Location
    Perth, WA, Australia
    Posts
    6

    Re: How to create Multiple windows

    I'd suggest going with the GLUT functions as it apparently has support built in.

    However performance and control are more important to you than portabiliy, I would recommend Windows system calls, CreateWindow(), SetWindowPos(), DestroyWindow(), etc. But ONLY if you don't want portability.
    If you could read my mind, you'd kill me out of pity!

Similar Threads

  1. How to create multiple windows on multiple displays with GLFW
    By Wally Lee in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-30-2017, 09:52 AM
  2. implement multiple windows in multiple threads
    By jayaprakash in forum OpenGL: Linux
    Replies: 3
    Last Post: 04-20-2009, 12:02 PM
  3. Replies: 4
    Last Post: 01-30-2006, 03:25 PM
  4. Replies: 0
    Last Post: 07-25-2002, 01:26 AM
  5. 0n multiple glut/opengl windows in multiple threads
    By kaas in forum OpenGL: Advanced Coding
    Replies: 11
    Last Post: 05-30-2002, 01:55 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