Results 1 to 3 of 3

Thread: doublebuffering four viewports?

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2000
    Posts
    1

    doublebuffering four viewports?

    I programmed an application on Win NT with four viewports(every viewport has its own DC). Now the viewports are supposed to be doublebuffered.

    How can I use doublebuffering for this? And how do I do it in C++?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    milano, italy
    Posts
    282

    Re: doublebuffering four viewports?

    act as usual. every DC should have a RC attached to it, so issue a SwapBuffers(DC) for any viewport.

    Dolo/\/\ightY
    Dolo/\/\ightY

  3. #3
    Member Newbie
    Join Date
    Mar 2000
    Location
    New Jersey
    Posts
    30

    Re: doublebuffering four viewports?

    I've done this too with MFC and 4 viewports. I setup the DC with my view, there's only 1 for the 4 viewports. Likewise with the Rendering context. I draw each viewport AND THEN swap buffers. It works fine. Hope this helps
    fs
    Francis Shanahan
    Architect

Similar Threads

  1. how to disable doublebuffering ?
    By supercoollee in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 05-10-2010, 03:40 AM
  2. Beginning OpenGL with Win32API - doublebuffering
    By robertmachardy in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-05-2009, 10:47 AM
  3. Viewports
    By ToddAtWSU in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-27-2005, 12:17 PM
  4. Viewports?
    By A05087 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 12-16-2002, 07:36 AM
  5. help with viewports
    By coredump in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-24-2001, 09:26 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