<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # QGLFramebufferObjectFormat Class Reference ## [[QtOpenGL](index.htm) module] 該QGLFramebufferObjectFormat類指定一個OpenGL幀緩沖區對象的格式。[More...](#details) ### Methods * `__init__ (self)` * `__init__ (self, QGLFramebufferObjectFormat?other)` * `QGLFramebufferObject.Attachment attachment (self)` * `int internalTextureFormat (self)` * `bool mipmap (self)` * `int samples (self)` * `setAttachment (self, QGLFramebufferObject.Attachment?attachment)` * `setInternalTextureFormat (self, int?internalTextureFormat)` * `setMipmap (self, bool?enabled)` * `setSamples (self, int?samples)` * `setTextureTarget (self, int?target)` * `int textureTarget (self)` ### Special Methods * `bool __eq__ (self, QGLFramebufferObjectFormat?other)` * `bool __ne__ (self, QGLFramebufferObjectFormat?other)` * * * ## Detailed Description 該QGLFramebufferObjectFormat類指定一個OpenGL幀緩沖區對象的格式。 一個幀緩沖對象有幾個特點: * [Number of samples per pixels.](qglframebufferobjectformat.html#setSamples) * [Depth and/or stencil attachments.](qglframebufferobjectformat.html#setAttachment) * [Texture target.](qglframebufferobjectformat.html#setTextureTarget) * [Internal texture format.](qglframebufferobjectformat.html#setInternalTextureFormat) 請注意,所需的附件每像素采樣或數可能不是由硬件驅動程序的支持。通話[QGLFramebufferObject.format](qglframebufferobject.html#format)( )創建后[QGLFramebufferObject](qglframebufferobject.html)找到用于創建幀緩沖對象的確切格式。 * * * ## Method Documentation ``` QGLFramebufferObjectFormat.__init__ (self) ``` 創建[QGLFramebufferObjectFormat](qglframebufferobjectformat.html)對象,用于指定一個OpenGL幀緩沖區對象的格式。 默認情況下,格式規定,沒有附件,質感目標非多重采樣幀緩沖區對象`GL_TEXTURE_2D`和內部格式`GL_RGBA8`。基于OpenGL / ES系統,默認的內部格式是`GL_RGBA`。 **See also** [samples](qglframebufferobjectformat.html#samples)( )[attachment](qglframebufferobjectformat.html#attachment)()和[internalTextureFormat](qglframebufferobjectformat.html#internalTextureFormat)( ) 。 ``` QGLFramebufferObjectFormat.__init__ (self, QGLFramebufferObjectFormat?other) ``` 構造的副本_other_。 ``` QGLFramebufferObject.Attachment QGLFramebufferObjectFormat.attachment (self) ``` [](qglframebufferobject.html#Attachment-enum) [返回附加到幀緩沖區對象的深度和模具緩沖器的配置。默認值是](qglframebufferobject.html#Attachment-enum)[QGLFramebufferObject.NoAttachment](qglframebufferobject.html#Attachment-enum)。 **See also** [setAttachment](qglframebufferobjectformat.html#setAttachment)( ) 。 ``` int QGLFramebufferObjectFormat.internalTextureFormat (self) ``` 返回一個幀緩沖對象的紋理或多重采樣幀緩沖區對象的顏色緩沖區的內部格式。默認值是`GL_RGBA8`在桌面OpenGL系統和`GL_RGBA`基于OpenGL / ES系統。 **See also** [setInternalTextureFormat](qglframebufferobjectformat.html#setInternalTextureFormat)( ) 。 ``` bool QGLFramebufferObjectFormat.mipmap (self) ``` 如果紋理映射已啟用,則返回True 。 此功能被引入Qt的4.8 。 **See also** [setMipmap](qglframebufferobjectformat.html#setMipmap)( ) 。 ``` int QGLFramebufferObjectFormat.samples (self) ``` 返回每個像素的樣本數,如果一個幀緩沖區對象是一個多重采樣幀緩沖區對象。否則,返回0 。默認值是0。 **See also** [setSamples](qglframebufferobjectformat.html#setSamples)( ) 。 ``` QGLFramebufferObjectFormat.setAttachment (self, QGLFramebufferObject.Attachment?attachment) ``` 設置一個幀緩沖對象的附件配置_attachment_。 **See also** [attachment](qglframebufferobjectformat.html#attachment)( ) 。 ``` QGLFramebufferObjectFormat.setInternalTextureFormat (self, int?internalTextureFormat) ``` 設置一個幀緩沖對象的紋理或多重采樣幀緩沖區對象的顏色緩沖區的內部格式_internalTextureFormat_。 **See also** [internalTextureFormat](qglframebufferobjectformat.html#internalTextureFormat)( ) 。 ``` QGLFramebufferObjectFormat.setMipmap (self, bool?enabled) ``` 使紋理映射,如果_enabled_為True,否則禁用它。 紋理映射默認情況下禁用。 如果紋理映射已啟用,更多的內存將被分配給mipmap級別。該mipmap級別可以通過綁定的質地和調用glGenerateMipmap ( )進行更新。紋理映射不能啟用多重采樣幀緩沖對象。 此功能被引入Qt的4.8 。 **See also** [mipmap](qglframebufferobjectformat.html#mipmap)()和[QGLFramebufferObject.texture](qglframebufferobject.html#texture)( ) 。 ``` QGLFramebufferObjectFormat.setSamples (self, int?samples) ``` 設置每個像素的樣本的多重采樣幀緩沖區對象的數量,以_samples_。 0的默認樣本數代表一個普通的非多重采樣幀緩沖區對象。 如果不支持硬件每個像素的樣本的期望量則??每個像素的樣本的最大數目將被使用。需要注意的是多重采樣幀緩沖對象不能被綁定為紋理。此外,該`GL_EXT_framebuffer_multisample`擴展需要創建每像素多于一個樣本的幀緩沖。 **See also** [samples](qglframebufferobjectformat.html#samples)( ) 。 ``` QGLFramebufferObjectFormat.setTextureTarget (self, int?target) ``` 設置紋理對象附加到幀緩沖對象的紋理_target_。忽略多重采樣幀緩沖對象。 **See also** [textureTarget](qglframebufferobjectformat.html#textureTarget)()和[samples](qglframebufferobjectformat.html#samples)( ) 。 ``` int QGLFramebufferObjectFormat.textureTarget (self) ``` 返回質感目標附加到幀緩沖區對象的質感。忽略多重采樣幀緩沖對象。默認值是`GL_TEXTURE_2D`。 **See also** [setTextureTarget](qglframebufferobjectformat.html#setTextureTarget)()和[samples](qglframebufferobjectformat.html#samples)( ) 。 ``` bool QGLFramebufferObjectFormat.__eq__ (self, QGLFramebufferObjectFormat?other) ``` ``` bool QGLFramebufferObjectFormat.__ne__ (self, QGLFramebufferObjectFormat?other) ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看