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. Graphics
  4. how can the diffrent DC share the same OpenGL List?

how can the diffrent DC share the same OpenGL List?

Scheduled Pinned Locked Moved Graphics
graphicsgame-devjsonquestion
3 Posts 3 Posters 2 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.
  • K Offline
    K Offline
    King Tran
    wrote on last edited by
    #1

    using the sharelist API we can using the same list in diffrent RC, but how can the diffrent DC share the same OpenGL List? thanks :)

    P J 2 Replies Last reply
    0
    • K King Tran

      using the sharelist API we can using the same list in diffrent RC, but how can the diffrent DC share the same OpenGL List? thanks :)

      P Offline
      P Offline
      Peter_in_2780
      wrote on last edited by
      #2

      Asking the same question twice in a row is not considered appropriate in the CP forums. If you don't get an answer, maybe you should consider modifying your question.

      Software rusts. Simon Stephenson, ca 1994.

      1 Reply Last reply
      0
      • K King Tran

        using the sharelist API we can using the same list in diffrent RC, but how can the diffrent DC share the same OpenGL List? thanks :)

        J Offline
        J Offline
        jk chan
        wrote on last edited by
        #3

        as far as opengl is concerned it just execut the opengl commands to the active context.for a single thread we can have only one active context.u can create a context using wglCreateContext function. to make it active u need to call wglMakeCurrent. so u can swith DCs by calling wglMakeCurrent function. if u need to draw simultaneously to two DCs u need to have two threads.

        If u can Dream... U can do it

        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