Results 1 to 2 of 2

Thread: renderPixmap and texture

  1. #1
    Join Date
    Mar 2006
    Posts
    2
    Qt products
    Qt3
    Platforms
    Windows

    Default renderPixmap and texture

    Hello, everyone!
    The problem is

    in a QGLWidget I draw a transporant figure applied with a texture. I see my picture on the screen in the way a desire but when I save the picture into a png file by calling renderPixmap I do not observe there any texture on the surface of the figure, just the plane surface with the color I set for the figure and the figure does not lost its transparence.

    Suppose I need to set one of QGLFormat properties but I don't have any idea wich of properties to set up after having read QGLFormat description.

    I use QT3.3.5 on Windows XP platform and C++ compiler from Visual Studio Net 2003.

  2. #2
    Join Date
    Mar 2006
    Posts
    2
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: renderPixmap and texture

    Everything's fine. A texture loaded once is out of assuarance to be accessable later. It's o'key if program is in the loop of any process but if it has been interrupted by another process (like openning saving window, for example) earlierloaded texture can be lost. So everything I do is just checking for the desirable texture to be accessable.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.