Results 1 to 3 of 3

Thread: OpenGL Qt and image sizes

  1. #1
    Join Date
    Jun 2011
    Posts
    203
    Thanks
    7
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default OpenGL Qt and image sizes

    I was curious to find out about image size restrictions as I'm having a bit of difficulty coming across this information elsewhere... haven't seen Qt covering this anywhere.

    Does Qt support non power of 2 image dimensions? Even if it does, how do I find out if some sort of implementation or environment does not? My understanding is that the older OpenGL supports only power of 2, however I think it's GL 2.0 and above? that supports non power of 2? I was just wondering if there's some info that goes into a bit more detail about this... I would like to find out why this power of 2 thing came about.

    Just wanted to learn a little bit more about it is all.

  2. #2
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: OpenGL Qt and image sizes

    Although this has nothing to do with Qt itself, answer to your question is:
    either OpenGL must be >= 2.0 or GL_ARB_texture_non_power_of_two ext. must be present.

    So to sum it up it's hw restriction, and any card supporting OGL >= 2.0 supports non pow. 2 textures.
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

  3. #3
    Join Date
    Jun 2011
    Posts
    203
    Thanks
    7
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: OpenGL Qt and image sizes

    Thanks I see now.

Similar Threads

  1. Saving QGraphicsScene with OpenGL to image
    By elbaschid in forum Qt Programming
    Replies: 1
    Last Post: 12th March 2009, 20:32
  2. Does OpenGL speed up the loading image?
    By learning_qt in forum Qt Programming
    Replies: 2
    Last Post: 4th December 2008, 09:26
  3. Image Manipulations using OpenGL
    By manojmka in forum Qt Programming
    Replies: 4
    Last Post: 9th May 2008, 21:49
  4. Replies: 7
    Last Post: 27th June 2007, 09:34
  5. OpenGL image viewer, need some help on implementation
    By Randulf in forum General Programming
    Replies: 11
    Last Post: 11th May 2007, 14:58

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
  •  
Qt is a trademark of The Qt Company.