Announcement

Collapse
No announcement yet.

New bitmap background (OpenGL)?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • New bitmap background (OpenGL)?

    Hi!

    Please, could you direct me how I can change the background with a new bitmap (in OpenGL)?

    Thanks in advance!
    Tanya

  • #2
    Hi Tanya!
    The background of what? A control, dialog? Can you give a few more details of what you're doing? Or perhaps a few lines of code showing what you tried?

    Comment


    • #3
      Hi Gary!

      I prepared an illustration to show what I need:



      ==============================================
      For example your (Gary) post:
      Post: OpenGL Texture Mapping - Rotating Cube (Single Image)
      Link: http://www.powerbasic.com/support/pb...ghlight=OpenGL
      ==============================================
      Last edited by Tanya Marinova; 13 Oct 2014, 11:57 AM.

      Comment


      • #4
        See the old cube project here

        ...
        Patrice Terrier
        www.zapsolution.com
        www.objreader.com
        Addons: GDImage.DLL 32/64-bit (Graphic library), WinLIFT.DLL 32/64-bit (Skin Engine).

        Comment


        • #5
          Hi, Patrice! Thank you!

          Yes, this is just exactly what I mean, but realized more simply - with the internal possibilities of OpenGL.
          Last edited by Tanya Marinova; 13 Oct 2014, 02:20 PM.

          Comment


          • #6
            but realized more simple
            What can do more, can do less

            See also that one

            ...
            Patrice Terrier
            www.zapsolution.com
            www.objreader.com
            Addons: GDImage.DLL 32/64-bit (Graphic library), WinLIFT.DLL 32/64-bit (Skin Engine).

            Comment


            • #7
              Patrice, this is fantastic! Great library! Respect!

              Is this problem that difficult that need GDImage library?

              I think that there should be a simple solution.

              Comment


              • #8
                Is this problem that difficult that need GDImage library?
                Nothing difficult, when you know how to do it, {just} apply the background texture to a rectangular shape staying at the bottom of the z-order.

                It is the same than mapping the texture on a face of the cube.

                The problem becomes much more complex when you want to mix GDI32, GDIPLUS, DirectX and OpenGL inside of a same graphic control container.
                GDImage has built-in features to perform OpenGL hardware anti-aliasing and also DirectDraw DWM support to work in composited mode.

                You can learn much more about OpenGL programming if you register to José Roca's forum, and studdy the code of the BassBox visual plugins that are true pieces of programming art work






                ...
                Patrice Terrier
                www.zapsolution.com
                www.objreader.com
                Addons: GDImage.DLL 32/64-bit (Graphic library), WinLIFT.DLL 32/64-bit (Skin Engine).

                Comment


                • #9
                  I received some help from a forum member. Thank you, Plamen Chobanov!

                  Plamen, this is the result after applying your advice and code:


                  Thank you again!

                  Comment

                  Working...
                  X