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. OpenGL rendering on desktop [modified]

OpenGL rendering on desktop [modified]

Scheduled Pinned Locked Moved Graphics
graphicsgame-devtutorial
5 Posts 3 Posters 3 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.
  • T Offline
    T Offline
    Tcpip2005
    wrote on last edited by
    #1

    How to render opengl objects on windows desktop without attaching to the Desktop Window DC. I mean it looks like rendering opengl scene on a window,but the window is totally transparent. Thank you all

    modified on Sunday, December 19, 2010 9:39 PM

    P L 2 Replies Last reply
    0
    • T Tcpip2005

      How to render opengl objects on windows desktop without attaching to the Desktop Window DC. I mean it looks like rendering opengl scene on a window,but the window is totally transparent. Thank you all

      modified on Sunday, December 19, 2010 9:39 PM

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

      Check out SetLayeredWindowAttributes [^]in the Win32 API Use OpenGL Background colour with with RGBA 0. Search google it's quite simple really.

      "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.

      T 1 Reply Last reply
      0
      • P parths

        Check out SetLayeredWindowAttributes [^]in the Win32 API Use OpenGL Background colour with with RGBA 0. Search google it's quite simple really.

        "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.

        T Offline
        T Offline
        Tcpip2005
        wrote on last edited by
        #3

        thank you.merry christmas

        1 Reply Last reply
        0
        • T Tcpip2005

          How to render opengl objects on windows desktop without attaching to the Desktop Window DC. I mean it looks like rendering opengl scene on a window,but the window is totally transparent. Thank you all

          modified on Sunday, December 19, 2010 9:39 PM

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

          I think this[^] has the answer you're looking for (particularly answer 4). It isn't as simple as it seems and the other solutions I've seen simply set a transparent replacement colour, which is going to result in popping pixels if any part of your rendered objects happen to contain that colour. Hope this helps. Cheers, Drew.

          T 1 Reply Last reply
          0
          • L Lost User

            I think this[^] has the answer you're looking for (particularly answer 4). It isn't as simple as it seems and the other solutions I've seen simply set a transparent replacement colour, which is going to result in popping pixels if any part of your rendered objects happen to contain that colour. Hope this helps. Cheers, Drew.

            T Offline
            T Offline
            Tcpip2005
            wrote on last edited by
            #5

            Thank you very much,very good. merry christmas and happy new year

            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