Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > b796bb6846bef0871594624de2c980c0 > files > 2357

qtbase5-doc-5.12.6-4.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qglframebufferobject.cpp -->
  <title>QGLFramebufferObjectFormat Class | Qt OpenGL</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qtopengl-index.html">Qt OpenGL</a></td><td ><a href="qtopengl-module.html">C++ Classes</a></td><td >QGLFramebufferObjectFormat</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtopengl-index.html">Qt 5.12.6 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QGLFramebufferObjectFormat Class</h1>
<!-- $$$QGLFramebufferObjectFormat-brief -->
<p>The <a href="qglframebufferobjectformat.html">QGLFramebufferObjectFormat</a> class specifies the format of an OpenGL framebuffer object. <a href="#details">More...</a></p>
<!-- @@@QGLFramebufferObjectFormat -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QGLFramebufferObjectFormat&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += opengl</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 4.6</td></tr></table></div><p><b>This class is obsolete.</b> It is provided to keep old source code working. We strongly advise against using it in new code.</p>
<ul>
<li><a href="qglframebufferobjectformat-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#QGLFramebufferObjectFormat">QGLFramebufferObjectFormat</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#QGLFramebufferObjectFormat-1">QGLFramebufferObjectFormat</a></b>(const QGLFramebufferObjectFormat &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#dtor.QGLFramebufferObjectFormat">~QGLFramebufferObjectFormat</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGLFramebufferObject::Attachment </td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#attachment">attachment</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> GLenum </td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#internalTextureFormat">internalTextureFormat</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#mipmap">mipmap</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#samples">samples</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#setAttachment">setAttachment</a></b>(QGLFramebufferObject::Attachment <i>attachment</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#setInternalTextureFormat">setInternalTextureFormat</a></b>(GLenum <i>internalTextureFormat</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#setMipmap">setMipmap</a></b>(bool <i>enabled</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#setSamples">setSamples</a></b>(int <i>samples</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#setTextureTarget">setTextureTarget</a></b>(GLenum <i>target</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> GLenum </td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#textureTarget">textureTarget</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#operator-not-eq">operator!=</a></b>(const QGLFramebufferObjectFormat &amp;<i>other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGLFramebufferObjectFormat &amp;</td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#operator-eq">operator=</a></b>(const QGLFramebufferObjectFormat &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qglframebufferobjectformat.html#operator-eq-eq">operator==</a></b>(const QGLFramebufferObjectFormat &amp;<i>other</i>) const</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QGLFramebufferObjectFormat-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qglframebufferobjectformat.html">QGLFramebufferObjectFormat</a> class specifies the format of an OpenGL framebuffer object.</p>
<p>A framebuffer object has several characteristics:</p>
<ul>
<li><a href="qglframebufferobjectformat.html#setSamples">Number of samples per pixels.</a></li>
<li><a href="qglframebufferobjectformat.html#setAttachment">Depth and/or stencil attachments.</a></li>
<li><a href="qglframebufferobjectformat.html#setTextureTarget">Texture target.</a></li>
<li><a href="qglframebufferobjectformat.html#setInternalTextureFormat">Internal texture format.</a></li>
</ul>
<p>Note that the desired attachments or number of samples per pixels might not be supported by the hardware driver. Call <a href="qglframebufferobject.html#format">QGLFramebufferObject::format</a>() after creating a <a href="qglframebufferobject.html">QGLFramebufferObject</a> to find the exact format that was used to create the frame buffer object.</p>
<p><b>Note: </b>This class has been deprecated in favor of <a href="../qtgui/qopenglframebufferobjectformat.html">QOpenGLFramebufferObjectFormat</a>.</p></div>
<p><b>See also </b><a href="qglframebufferobject.html">QGLFramebufferObject</a>.</p>
<!-- @@@QGLFramebufferObjectFormat -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGLFramebufferObjectFormat[overload1]$$$QGLFramebufferObjectFormat -->
<h3 class="fn" id="QGLFramebufferObjectFormat"><a name="QGLFramebufferObjectFormat"></a>QGLFramebufferObjectFormat::<span class="name">QGLFramebufferObjectFormat</span>()</h3>
<p>Creates a <a href="qglframebufferobjectformat.html" class="obsolete">QGLFramebufferObjectFormat</a> object for specifying the format of an OpenGL framebuffer object.</p>
<p>By default the format specifies a non-multisample framebuffer object with no attachments, texture target <code>GL_TEXTURE_2D</code>, and internal format <code>GL_RGBA8</code>. On OpenGL/ES systems, the default internal format is <code>GL_RGBA</code>.</p>
<p><b>See also </b><a href="qglframebufferobjectformat.html#samples">samples</a>(), <a href="qglframebufferobjectformat.html#attachment">attachment</a>(), and <a href="qglframebufferobjectformat.html#internalTextureFormat">internalTextureFormat</a>().</p>
<!-- @@@QGLFramebufferObjectFormat -->
<!-- $$$QGLFramebufferObjectFormat$$$QGLFramebufferObjectFormatconstQGLFramebufferObjectFormat& -->
<h3 class="fn" id="QGLFramebufferObjectFormat-1"><a name="QGLFramebufferObjectFormat-1"></a>QGLFramebufferObjectFormat::<span class="name">QGLFramebufferObjectFormat</span>(const <span class="type"><a href="qglframebufferobjectformat.html#QGLFramebufferObjectFormat">QGLFramebufferObjectFormat</a></span> &amp;<i>other</i>)</h3>
<p>Constructs a copy of <i>other</i>.</p>
<!-- @@@QGLFramebufferObjectFormat -->
<!-- $$$~QGLFramebufferObjectFormat[overload1]$$$~QGLFramebufferObjectFormat -->
<h3 class="fn" id="dtor.QGLFramebufferObjectFormat"><a name="dtor.QGLFramebufferObjectFormat"></a>QGLFramebufferObjectFormat::<span class="name">~QGLFramebufferObjectFormat</span>()</h3>
<p>Destroys the <a href="qglframebufferobjectformat.html" class="obsolete">QGLFramebufferObjectFormat</a>.</p>
<!-- @@@~QGLFramebufferObjectFormat -->
<!-- $$$attachment[overload1]$$$attachment -->
<h3 class="fn" id="attachment"><a name="attachment"></a><span class="type"><a href="qglframebufferobject.html#Attachment-enum">QGLFramebufferObject::Attachment</a></span> QGLFramebufferObjectFormat::<span class="name">attachment</span>() const</h3>
<p>Returns the configuration of the depth and stencil buffers attached to a framebuffer object. The default is <a href="qglframebufferobject.html#Attachment-enum">QGLFramebufferObject::NoAttachment</a>.</p>
<p><b>See also </b><a href="qglframebufferobjectformat.html#setAttachment">setAttachment</a>().</p>
<!-- @@@attachment -->
<!-- $$$internalTextureFormat[overload1]$$$internalTextureFormat -->
<h3 class="fn" id="internalTextureFormat"><a name="internalTextureFormat"></a><span class="type">GLenum</span> QGLFramebufferObjectFormat::<span class="name">internalTextureFormat</span>() const</h3>
<p>Returns the internal format of a framebuffer object's texture or multisample framebuffer object's color buffer. The default is <code>GL_RGBA8</code> on desktop OpenGL systems, and <code>GL_RGBA</code> on OpenGL/ES systems.</p>
<p><b>See also </b><a href="qglframebufferobjectformat.html#setInternalTextureFormat">setInternalTextureFormat</a>().</p>
<!-- @@@internalTextureFormat -->
<!-- $$$mipmap[overload1]$$$mipmap -->
<h3 class="fn" id="mipmap"><a name="mipmap"></a><span class="type">bool</span> QGLFramebufferObjectFormat::<span class="name">mipmap</span>() const</h3>
<p>Returns <code>true</code> if mipmapping is enabled.</p>
<p>This function was introduced in  Qt 4.8.</p>
<p><b>See also </b><a href="qglframebufferobjectformat.html#setMipmap">setMipmap</a>().</p>
<!-- @@@mipmap -->
<!-- $$$samples[overload1]$$$samples -->
<h3 class="fn" id="samples"><a name="samples"></a><span class="type">int</span> QGLFramebufferObjectFormat::<span class="name">samples</span>() const</h3>
<p>Returns the number of samples per pixel if a framebuffer object is a multisample framebuffer object. Otherwise, returns 0. The default value is 0.</p>
<p><b>See also </b><a href="qglframebufferobjectformat.html#setSamples">setSamples</a>().</p>
<!-- @@@samples -->
<!-- $$$setAttachment[overload1]$$$setAttachmentQGLFramebufferObject::Attachment -->
<h3 class="fn" id="setAttachment"><a name="setAttachment"></a><span class="type">void</span> QGLFramebufferObjectFormat::<span class="name">setAttachment</span>(<span class="type"><a href="qglframebufferobject.html#Attachment-enum">QGLFramebufferObject::Attachment</a></span> <i>attachment</i>)</h3>
<p>Sets the attachment configuration of a framebuffer object to <i>attachment</i>.</p>
<p><b>See also </b><a href="qglframebufferobjectformat.html#attachment">attachment</a>().</p>
<!-- @@@setAttachment -->
<!-- $$$setInternalTextureFormat[overload1]$$$setInternalTextureFormatGLenum -->
<h3 class="fn" id="setInternalTextureFormat"><a name="setInternalTextureFormat"></a><span class="type">void</span> QGLFramebufferObjectFormat::<span class="name">setInternalTextureFormat</span>(<span class="type">GLenum</span> <i>internalTextureFormat</i>)</h3>
<p>Sets the internal format of a framebuffer object's texture or multisample framebuffer object's color buffer to <i>internalTextureFormat</i>.</p>
<p><b>See also </b><a href="qglframebufferobjectformat.html#internalTextureFormat">internalTextureFormat</a>().</p>
<!-- @@@setInternalTextureFormat -->
<!-- $$$setMipmap[overload1]$$$setMipmapbool -->
<h3 class="fn" id="setMipmap"><a name="setMipmap"></a><span class="type">void</span> QGLFramebufferObjectFormat::<span class="name">setMipmap</span>(<span class="type">bool</span> <i>enabled</i>)</h3>
<p>Enables mipmapping if <i>enabled</i> is true; otherwise disables it.</p>
<p>Mipmapping is disabled by default.</p>
<p>If mipmapping is enabled, additional memory will be allocated for the mipmap levels. The mipmap levels can be updated by binding the texture and calling glGenerateMipmap(). Mipmapping cannot be enabled for multisampled framebuffer objects.</p>
<p>This function was introduced in  Qt 4.8.</p>
<p><b>See also </b><a href="qglframebufferobjectformat.html#mipmap">mipmap</a>() and <a href="qglframebufferobject.html#texture">QGLFramebufferObject::texture</a>().</p>
<!-- @@@setMipmap -->
<!-- $$$setSamples[overload1]$$$setSamplesint -->
<h3 class="fn" id="setSamples"><a name="setSamples"></a><span class="type">void</span> QGLFramebufferObjectFormat::<span class="name">setSamples</span>(<span class="type">int</span> <i>samples</i>)</h3>
<p>Sets the number of samples per pixel for a multisample framebuffer object to <i>samples</i>. The default sample count of 0 represents a regular non-multisample framebuffer object.</p>
<p>If the desired amount of samples per pixel is not supported by the hardware then the maximum number of samples per pixel will be used. Note that multisample framebuffer objects can not be bound as textures. Also, the <code>GL_EXT_framebuffer_multisample</code> extension is required to create a framebuffer with more than one sample per pixel.</p>
<p><b>See also </b><a href="qglframebufferobjectformat.html#samples">samples</a>().</p>
<!-- @@@setSamples -->
<!-- $$$setTextureTarget[overload1]$$$setTextureTargetGLenum -->
<h3 class="fn" id="setTextureTarget"><a name="setTextureTarget"></a><span class="type">void</span> QGLFramebufferObjectFormat::<span class="name">setTextureTarget</span>(<span class="type">GLenum</span> <i>target</i>)</h3>
<p>Sets the texture target of the texture attached to a framebuffer object to <i>target</i>. Ignored for multisample framebuffer objects.</p>
<p><b>See also </b><a href="qglframebufferobjectformat.html#textureTarget">textureTarget</a>() and <a href="qglframebufferobjectformat.html#samples">samples</a>().</p>
<!-- @@@setTextureTarget -->
<!-- $$$textureTarget[overload1]$$$textureTarget -->
<h3 class="fn" id="textureTarget"><a name="textureTarget"></a><span class="type">GLenum</span> QGLFramebufferObjectFormat::<span class="name">textureTarget</span>() const</h3>
<p>Returns the texture target of the texture attached to a framebuffer object. Ignored for multisample framebuffer objects. The default is <code>GL_TEXTURE_2D</code>.</p>
<p><b>See also </b><a href="qglframebufferobjectformat.html#setTextureTarget">setTextureTarget</a>() and <a href="qglframebufferobjectformat.html#samples">samples</a>().</p>
<!-- @@@textureTarget -->
<!-- $$$operator!=[overload1]$$$operator!=constQGLFramebufferObjectFormat& -->
<h3 class="fn" id="operator-not-eq"><a name="operator-not-eq"></a><span class="type">bool</span> QGLFramebufferObjectFormat::<span class="name">operator!=</span>(const <span class="type"><a href="qglframebufferobjectformat.html#QGLFramebufferObjectFormat">QGLFramebufferObjectFormat</a></span> &amp;<i>other</i>) const</h3>
<p>Returns <code>false</code> if all the options of this framebuffer object format are the same as <i>other</i>; otherwise returns <code>true</code>.</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=constQGLFramebufferObjectFormat& -->
<h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qglframebufferobjectformat.html#QGLFramebufferObjectFormat">QGLFramebufferObjectFormat</a></span> &amp;QGLFramebufferObjectFormat::<span class="name">operator=</span>(const <span class="type"><a href="qglframebufferobjectformat.html#QGLFramebufferObjectFormat">QGLFramebufferObjectFormat</a></span> &amp;<i>other</i>)</h3>
<p>Assigns <i>other</i> to this object.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQGLFramebufferObjectFormat& -->
<h3 class="fn" id="operator-eq-eq"><a name="operator-eq-eq"></a><span class="type">bool</span> QGLFramebufferObjectFormat::<span class="name">operator==</span>(const <span class="type"><a href="qglframebufferobjectformat.html#QGLFramebufferObjectFormat">QGLFramebufferObjectFormat</a></span> &amp;<i>other</i>) const</h3>
<p>Returns <code>true</code> if all the options of this framebuffer object format are the same as <i>other</i>; otherwise returns <code>false</code>.</p>
<!-- @@@operator== -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>