Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] QOpenGLTexture method createTextureView. Is maximumMipmapLevel and maximumLayer inclusive?
QtWS25 Last Chance

[SOLVED] QOpenGLTexture method createTextureView. Is maximumMipmapLevel and maximumLayer inclusive?

Scheduled Pinned Locked Moved General and Desktop
qopengltexturetextureopengldocumentation
4 Posts 2 Posters 1.5k Views
  • 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.
  • H Offline
    H Offline
    HarryLong
    wrote on 11 Aug 2015, 13:44 last edited by HarryLong 8 Nov 2015, 16:09
    #1

    The documentation for the QOpenGLTexture method:

    QOpenGLTexture * QOpenGLTexture::createTextureView(Target target, TextureFormat viewFormat, int minimumMipmapLevel, int maximumMipmapLevel, int minimumLayer, int maximumLayer) const
    

    Does not state whether maximumMipmapLevel and maximumLayer are inclusive/exclusive. The associated openGL method is:

    void glTextureView(	GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
    

    This is clearer as it allows you to state explicitly the number of layers/mipmaps.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 11 Aug 2015, 14:16 last edited by
      #2

      Hi, welcome to devnet.

      Yes, they are inclusive i.e Qt's min, max translates to OpenGL's min, max-min+1.

      1 Reply Last reply
      1
      • H Offline
        H Offline
        HarryLong
        wrote on 11 Aug 2015, 14:34 last edited by
        #3

        Thanks. I would set this as solved but cannot figure out how...

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on 11 Aug 2015, 14:56 last edited by
          #4

          @HarryLong said:

          I would set this as solved but cannot figure out how...

          Edit your first message's title to start with [SOLVED].

          1 Reply Last reply
          1

          3/4

          11 Aug 2015, 14:34

          • Login

          • Login or register to search.
          3 out of 4
          • First post
            3/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved