Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: dual monitor issue

  1. #1
    Intern Newbie
    Join Date
    Dec 2004
    Location
    Mars
    Posts
    40

    dual monitor issue

    experts:

    i ain't sure if this is an OpenGL issue, but i really need your help.

    i just finished an application with Visual C++ under XP. in my application i render the images to a window( view class). now i would like to have another monitor, to run the application with dual monitor. my card is 3dlabs wildcat realizm 800 with two outputs. i want to get hold of the second monitor, and switch the DC and RC to that one before rendering. or maybe i should have 2 wiondows with one view class.

    i don't have any clue how to make it, either way is ok. could you please offer me some hints or resources about this issue? many thanks!

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: dual monitor issue

    Not sure I understood really want you need :

    2 monitors, one with your application and a small gl viewport with a bunch of buttons, menus, guis, etc, and the other one with the same GL view but in fullscreen ?

  3. #3
    Junior Member Regular Contributor execom_rt's Avatar
    Join Date
    Jul 2000
    Location
    Canada
    Posts
    237

    Re: dual monitor issue

    Assuming your application is in 'windowed' mode :

    Create two windows one of the left side and one of the right side of the viewport

    Example: 2 monitors set in 1024x768

    2048x768

    - Create one window at 0,0 - 1024x768
    - Create a second window at 1024,0 - 2048,768
    - Create a context for each window, and share them.

    Now, if you want to have two FULL SCREEN (not windowed), then, bad news : Windows doesn't support it with OpenGL. Microsoft didn't implement that feature, and since they dropped OpenGL support ... You need to use DirectX for that case.

  4. #4
    Intern Newbie
    Join Date
    Dec 2004
    Location
    Mars
    Posts
    40

    Re: dual monitor issue

    many thanks ZbuffeR and execom_rt:

    really feel ashame to clarify my question. because the problem is just i don't know hot to create two windows....:-( i think it's a visual c++ issue. i created everything for this single window application following a book, don't really underst it though. would you please offer me some hints? should i create a new view class?

    thank you

  5. #5
    Advanced Member Frequent Contributor yooyo's Avatar
    Join Date
    Apr 2003
    Location
    Belgrade, Serbia
    Posts
    883

    Re: dual monitor issue

    I didn't understand well your problem... On my NV card I can create opengl window and stretch over both monitors and everything work with hw acceleration.

    But this not working with D3D!

    yooyo

  6. #6
    Intern Newbie
    Join Date
    Dec 2004
    Location
    Mars
    Posts
    40

    Re: dual monitor issue

    it's a VC issue. solved. many thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •