Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Share OpenGL Displaylists in MDI Applications

Share OpenGL Displaylists in MDI Applications

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsgame-devquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    olaebo
    wrote on last edited by
    #1

    Hi, is it possible to share OpenGL Displaylists in MDI Applications? I would like to do the following: 1) compile some displaylists 2) Make some CView CDocument Objects 3) Use all or some of the displaylists in different CView`s Many Thanks Olaf

    N C 2 Replies Last reply
    0
    • O olaebo

      Hi, is it possible to share OpenGL Displaylists in MDI Applications? I would like to do the following: 1) compile some displaylists 2) Make some CView CDocument Objects 3) Use all or some of the displaylists in different CView`s Many Thanks Olaf

      N Offline
      N Offline
      nadiric
      wrote on last edited by
      #2

      I believe display lists are limited to an OpenGL rendering context. Although you can share rendering contexts across windows (by changing the device context), they must all share the same pixel format. (found in OpenGL Superbible pg. 658) hRC = wglCreateContext(hDC); //initially create rendering context wglMakeCurrent(hDC,hRC); //change to a different hDC, keeping the original hRC Can't say I have actually done this...

      1 Reply Last reply
      0
      • O olaebo

        Hi, is it possible to share OpenGL Displaylists in MDI Applications? I would like to do the following: 1) compile some displaylists 2) Make some CView CDocument Objects 3) Use all or some of the displaylists in different CView`s Many Thanks Olaf

        C Offline
        C Offline
        cmk
        wrote on last edited by
        #3

        wglShareLists

        ...cmk Save the whales - collect the whole set

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups