<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qgl.cpp --> <title>QGL Namespace | 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 >QGL Namespace</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="#types">Types</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">QGL Namespace</h1> <!-- $$$QGL-brief --> <p>The QGL namespace specifies miscellaneous identifiers used in the Qt OpenGL module. <a href="#details">More...</a></p> <!-- @@@QGL --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QGL></span> </td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += opengl</td></tr></table></div><ul> </ul> <a name="types"></a> <h2 id="types">Types</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qgl.html#FormatOption-enum">FormatOption</a></b> { DoubleBuffer, DepthBuffer, Rgba, AlphaChannel, ..., NoDeprecatedFunctions }</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qgl.html#FormatOption-enum">FormatOptions</a></b></td></tr> </table></div> <a name="details"></a> <!-- $$$QGL-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The QGL namespace specifies miscellaneous identifiers used in the Qt OpenGL module.</p> </div> <!-- @@@QGL --> <div class="types"> <h2>Type Documentation</h2> <!-- $$$FormatOption$$$DoubleBuffer$$$DepthBuffer$$$Rgba$$$AlphaChannel$$$AccumBuffer$$$StencilBuffer$$$StereoBuffers$$$DirectRendering$$$HasOverlay$$$SampleBuffers$$$DeprecatedFunctions$$$SingleBuffer$$$NoDepthBuffer$$$ColorIndex$$$NoAlphaChannel$$$NoAccumBuffer$$$NoStencilBuffer$$$NoStereoBuffers$$$IndirectRendering$$$NoOverlay$$$NoSampleBuffers$$$NoDeprecatedFunctions --> <h3 class="flags" id="FormatOption-enum"><a name="FormatOption-enum"></a>enum QGL::<span class="name">FormatOption</span><br/>flags QGL::<span class="name">FormatOptions</span></h3> <p>This enum specifies the format options that can be used to configure an OpenGL context. These are set using <a href="qglformat.html#setOption">QGLFormat::setOption</a>().</p> <div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><code>QGL::DoubleBuffer</code></td><td class="topAlign tblval"><code>0x0001</code></td><td class="topAlign">Specifies the use of double buffering.</td></tr> <tr><td class="topAlign"><code>QGL::DepthBuffer</code></td><td class="topAlign tblval"><code>0x0002</code></td><td class="topAlign">Enables the use of a depth buffer.</td></tr> <tr><td class="topAlign"><code>QGL::Rgba</code></td><td class="topAlign tblval"><code>0x0004</code></td><td class="topAlign">Specifies that the context should use RGBA as its pixel format.</td></tr> <tr><td class="topAlign"><code>QGL::AlphaChannel</code></td><td class="topAlign tblval"><code>0x0008</code></td><td class="topAlign">Enables the use of an alpha channel.</td></tr> <tr><td class="topAlign"><code>QGL::AccumBuffer</code></td><td class="topAlign tblval"><code>0x0010</code></td><td class="topAlign">Enables the use of an accumulation buffer.</td></tr> <tr><td class="topAlign"><code>QGL::StencilBuffer</code></td><td class="topAlign tblval"><code>0x0020</code></td><td class="topAlign">Enables the use of a stencil buffer.</td></tr> <tr><td class="topAlign"><code>QGL::StereoBuffers</code></td><td class="topAlign tblval"><code>0x0040</code></td><td class="topAlign">Enables the use of a stereo buffers for use with visualization hardware.</td></tr> <tr><td class="topAlign"><code>QGL::DirectRendering</code></td><td class="topAlign tblval"><code>0x0080</code></td><td class="topAlign">Specifies that the context is used for direct rendering to a display.</td></tr> <tr><td class="topAlign"><code>QGL::HasOverlay</code></td><td class="topAlign tblval"><code>0x0100</code></td><td class="topAlign">Enables the use of an overlay.</td></tr> <tr><td class="topAlign"><code>QGL::SampleBuffers</code></td><td class="topAlign tblval"><code>0x0200</code></td><td class="topAlign">Enables the use of sample buffers.</td></tr> <tr><td class="topAlign"><code>QGL::DeprecatedFunctions</code></td><td class="topAlign tblval"><code>0x0400</code></td><td class="topAlign">Enables the use of deprecated functionality for OpenGL 3.x contexts. A context with deprecated functionality enabled is called a full context in the OpenGL specification.</td></tr> <tr><td class="topAlign"><code>QGL::SingleBuffer</code></td><td class="topAlign tblval"><code>DoubleBuffer << 16</code></td><td class="topAlign">Specifies the use of a single buffer, as opposed to double buffers.</td></tr> <tr><td class="topAlign"><code>QGL::NoDepthBuffer</code></td><td class="topAlign tblval"><code>DepthBuffer << 16</code></td><td class="topAlign">Disables the use of a depth buffer.</td></tr> <tr><td class="topAlign"><code>QGL::ColorIndex</code></td><td class="topAlign tblval"><code>Rgba << 16</code></td><td class="topAlign">Specifies that the context should use a color index as its pixel format.</td></tr> <tr><td class="topAlign"><code>QGL::NoAlphaChannel</code></td><td class="topAlign tblval"><code>AlphaChannel << 16</code></td><td class="topAlign">Disables the use of an alpha channel.</td></tr> <tr><td class="topAlign"><code>QGL::NoAccumBuffer</code></td><td class="topAlign tblval"><code>AccumBuffer << 16</code></td><td class="topAlign">Disables the use of an accumulation buffer.</td></tr> <tr><td class="topAlign"><code>QGL::NoStencilBuffer</code></td><td class="topAlign tblval"><code>StencilBuffer << 16</code></td><td class="topAlign">Disables the use of a stencil buffer.</td></tr> <tr><td class="topAlign"><code>QGL::NoStereoBuffers</code></td><td class="topAlign tblval"><code>StereoBuffers << 16</code></td><td class="topAlign">Disables the use of stereo buffers.</td></tr> <tr><td class="topAlign"><code>QGL::IndirectRendering</code></td><td class="topAlign tblval"><code>DirectRendering << 16</code></td><td class="topAlign">Specifies that the context is used for indirect rendering to a buffer.</td></tr> <tr><td class="topAlign"><code>QGL::NoOverlay</code></td><td class="topAlign tblval"><code>HasOverlay << 16</code></td><td class="topAlign">Disables the use of an overlay.</td></tr> <tr><td class="topAlign"><code>QGL::NoSampleBuffers</code></td><td class="topAlign tblval"><code>SampleBuffers << 16</code></td><td class="topAlign">Disables the use of sample buffers.</td></tr> <tr><td class="topAlign"><code>QGL::NoDeprecatedFunctions</code></td><td class="topAlign tblval"><code>DeprecatedFunctions << 16</code></td><td class="topAlign">Disables the use of deprecated functionality for OpenGL 3.x contexts. A context with deprecated functionality disabled is called a forward compatible context in the OpenGL specification.</td></tr> </table></div> <p>The FormatOptions type is a typedef for <a href="../qtcore/qflags.html">QFlags</a><FormatOption>. It stores an OR combination of FormatOption values.</p> <!-- @@@FormatOption --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</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>