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. sharing gl textures qith multple child windows

sharing gl textures qith multple child windows

Scheduled Pinned Locked Moved Graphics
comquestion
3 Posts 2 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.
  • J Offline
    J Offline
    Jim Crafton
    wrote on last edited by
    #1

    If i have multiple child windows, each with it's own gl context, and I load up a texture with glGenTextures(), what's the correct way to go about being able to share the same texture with multiple contexts? Do I need to manually load in the image/texture for each context?

    ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

    L 1 Reply Last reply
    0
    • J Jim Crafton

      If i have multiple child windows, each with it's own gl context, and I load up a texture with glGenTextures(), what's the correct way to go about being able to share the same texture with multiple contexts? Do I need to manually load in the image/texture for each context?

      ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I've never tried this so I can't answer from personal experience. There is just one short mention of this in the edition of the Red Book I have. It says that 'texture objects and display lists can be shared between contexts using wglShareLists'. So I assume that a texture whose creation is wrapped in a display lists can be shared.

      L u n a t i c F r i n g e

      J 1 Reply Last reply
      0
      • L Lost User

        I've never tried this so I can't answer from personal experience. There is just one short mention of this in the edition of the Red Book I have. It says that 'texture objects and display lists can be shared between contexts using wglShareLists'. So I assume that a texture whose creation is wrapped in a display lists can be shared.

        L u n a t i c F r i n g e

        J Offline
        J Offline
        Jim Crafton
        wrote on last edited by
        #3

        Thanks. I found something like that too, haven't got that working yet.

        ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

        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