Results 1 to 2 of 2

Thread: Problems with multiple windows in Win98

  1. #1
    Junior Member Newbie
    Join Date
    May 2000
    Location
    Coon Rapids, MN, USA
    Posts
    6

    Problems with multiple windows in Win98

    First off, I must say this site is awsome. I love the new BB format! Now, on to the problem:

    Ok, I have this program I orignially wrote on a SunOS machine which opens two windows and renders to both of them - each window has its own display, mouse_motion, and reshape callbacks.

    Well, I tried to port the thing to Win98 (as I have many other SunOS programs I wrote) and the program runs well except it never calls the second windows display function. It will call the second window's mouse_motion function, but glutPostRedisplay() simply doesn't work on the second window. The glutPostRedisplay() call is made, but the program never enters the second windows display callback. The original window works fine. I can manually call the second window's display function, and it draws, but as you know this kind of thing causes problems, and I'd rather have the program working as it was ment to...

    Do I need to grab hold of a windows device context or something? I found that the create window calls are returning valid integer ID's, so I don't think a device context is the answer. Ah well, any help would be greatly appreciated...
    -- Cyrius Tor
    "Wherever you go, there you are"

  2. #2
    Senior Member Regular Contributor
    Join Date
    May 2000
    Location
    Batavia, NY, 14020
    Posts
    234

    Re: Problems with multiple windows in Win98

    Before switching rendering windows, issue a call to wglMakeCurrent() with the appropriate parameters to the window of interest. You'll need the window's DC and rendering context to do so, and I am not certain of how to do this in glut (though glut should do it by itself???).

    It sounds like the app (or glut) is actually not actualizing the correct rendering context for the window. That 'should' help. I hope.

    Siwko
    - I am not opensource! -

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. Replies: 4
    Last Post: 01-30-2006, 03:25 PM
  3. Counterstrike @ win98 problems...
    By tombo17 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-03-2003, 05:15 PM
  4. Problem with rendering to multiple windows on WIN98
    By krish in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 08-31-2000, 01:21 PM
  5. Problems with multiple rendering contexts and windows!
    By [DUD]Knoen in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 07-05-2000, 07:46 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