<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- contextattributes.cpp --> <title>Canvas3DContextAttributes QML Type | Qt Canvas 3D 5.9</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.9</td><td ><a href="qtcanvas3d-index.html">Qt Canvas 3D</a></td><td ><a href="qtcanvas3d-qmlmodule.html">QML Types</a></td><td >Canvas3DContextAttributes QML Type</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</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="#properties">Properties</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">Canvas3DContextAttributes QML Type</h1> <span class="subtitle"></span> <!-- $$$Canvas3DContextAttributes-brief --> <p>Attribute set for <a href="qml-qtcanvas3d-context3d.html">Context3D</a> <a href="#details">More...</a></p> <!-- @@@Canvas3DContextAttributes --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtCanvas3D 1.1</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> QtCanvas3D 1.0</td></tr></table></div><ul> <li><a href="qml-qtcanvas3d-canvas3dcontextattributes-members.html">List of all members, including inherited members</a></li> </ul> <a name="properties"></a> <h2 id="properties">Properties</h2> <ul> <li class="fn"><b><b><a href="qml-qtcanvas3d-canvas3dcontextattributes.html#alpha-prop">alpha</a></b></b> : bool</li> <li class="fn"><b><b><a href="qml-qtcanvas3d-canvas3dcontextattributes.html#antialias-prop">antialias</a></b></b> : bool</li> <li class="fn"><b><b><a href="qml-qtcanvas3d-canvas3dcontextattributes.html#depth-prop">depth</a></b></b> : bool</li> <li class="fn"><b><b><a href="qml-qtcanvas3d-canvas3dcontextattributes.html#failIfMajorPerformanceCaveat-prop">failIfMajorPerformanceCaveat</a></b></b> : bool</li> <li class="fn"><b><b><a href="qml-qtcanvas3d-canvas3dcontextattributes.html#preferLowPowerToHighPerformance-prop">preferLowPowerToHighPerformance</a></b></b> : bool</li> <li class="fn"><b><b><a href="qml-qtcanvas3d-canvas3dcontextattributes.html#premultipliedAlpha-prop">premultipliedAlpha</a></b></b> : bool</li> <li class="fn"><b><b><a href="qml-qtcanvas3d-canvas3dcontextattributes.html#preserveDrawingBuffer-prop">preserveDrawingBuffer</a></b></b> : bool</li> <li class="fn"><b><b><a href="qml-qtcanvas3d-canvas3dcontextattributes.html#stencil-prop">stencil</a></b></b> : bool</li> </ul> <!-- $$$Canvas3DContextAttributes-description --> <a name="details"></a> <h2 id="details">Detailed Description</h2> <p><a href="qml-qtcanvas3d-canvas3dcontextattributes.html">Canvas3DContextAttributes</a> is an attribute set that can be given as parameter on first call to <a href="qml-qtcanvas3d-canvas3d.html">Canvas3D</a> object's <a href="qml-qtcanvas3d-canvas3d.html#getContext-method">getContext(string type, Canvas3DContextAttributes options)</a> method call. It can also be requested from the <a href="qml-qtcanvas3d-context3d.html">Context3D</a> using <a href="qml-qtcanvas3d-context3d.html#getContextAttributes-method">Context3D::getContextAttributes()</a> later on to verify what exact attributes are in fact enabled/disabled in the created context.</p> <p><b>See also </b><a href="qml-qtcanvas3d-context3d.html">Context3D</a> and <a href="qml-qtcanvas3d-canvas3d.html">Canvas3D</a>.</p> <!-- @@@Canvas3DContextAttributes --> <h2>Property Documentation</h2> <!-- $$$alpha --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="alpha-prop"> <td class="tblQmlPropNode"><p> <a name="alpha-prop"></a><span class="name">alpha</span> : <span class="type">bool</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Specifies whether the default render target of the <a href="qml-qtcanvas3d-context3d.html">Context3D</a> has an alpha channel for the purposes of blending its contents with overlapping Qt Quick items. Defaults to <code>true</code>.</p> </div></div><!-- @@@alpha --> <br/> <!-- $$$antialias --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="antialias-prop"> <td class="tblQmlPropNode"><p> <a name="antialias-prop"></a><span class="name">antialias</span> : <span class="type">bool</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Specifies whether antialiasing buffer is created for the default render target of the <a href="qml-qtcanvas3d-context3d.html">Context3D</a>. Defaults to <code>true</code>.</p> </div></div><!-- @@@antialias --> <br/> <!-- $$$depth --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="depth-prop"> <td class="tblQmlPropNode"><p> <a name="depth-prop"></a><span class="name">depth</span> : <span class="type">bool</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Specifies whether a depth attachment is to be created and attached to the default render target of the <a href="qml-qtcanvas3d-context3d.html">Context3D</a>. Defaults to <code>true</code>.</p> </div></div><!-- @@@depth --> <br/> <!-- $$$failIfMajorPerformanceCaveat --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="failIfMajorPerformanceCaveat-prop"> <td class="tblQmlPropNode"><p> <a name="failIfMajorPerformanceCaveat-prop"></a><span class="name">failIfMajorPerformanceCaveat</span> : <span class="type">bool</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Ignored. Defaults to <code>false</code>.</p> </div></div><!-- @@@failIfMajorPerformanceCaveat --> <br/> <!-- $$$preferLowPowerToHighPerformance --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="preferLowPowerToHighPerformance-prop"> <td class="tblQmlPropNode"><p> <a name="preferLowPowerToHighPerformance-prop"></a><span class="name">preferLowPowerToHighPerformance</span> : <span class="type">bool</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Ignored. Defaults to <code>false</code>.</p> </div></div><!-- @@@preferLowPowerToHighPerformance --> <br/> <!-- $$$premultipliedAlpha --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="premultipliedAlpha-prop"> <td class="tblQmlPropNode"><p> <a name="premultipliedAlpha-prop"></a><span class="name">premultipliedAlpha</span> : <span class="type">bool</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Qt Quick always expects premultiplied alpha values when blending Qt Quick items together, so keeping this property <code>true</code> is recommended. Setting it to <code>false</code> can cause a minor performance impact, as an additional render pass is needed. Defaults to <code>true</code>.</p> </div></div><!-- @@@premultipliedAlpha --> <br/> <!-- $$$preserveDrawingBuffer --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="preserveDrawingBuffer-prop"> <td class="tblQmlPropNode"><p> <a name="preserveDrawingBuffer-prop"></a><span class="name">preserveDrawingBuffer</span> : <span class="type">bool</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Specifies whether or not the drawing buffer contents are preserved from frame to frame. Ignored when drawing to the background or the foreground of the Qt Quick scene. Defaults to <code>false</code>.</p> </div></div><!-- @@@preserveDrawingBuffer --> <br/> <!-- $$$stencil --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="stencil-prop"> <td class="tblQmlPropNode"><p> <a name="stencil-prop"></a><span class="name">stencil</span> : <span class="type">bool</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Specifies whether a stencil attachment is to be created and attached to the default render target of the <a href="qml-qtcanvas3d-context3d.html">Context3D</a>. Defaults to <code>false</code>.</p> </div></div><!-- @@@stencil --> <br/> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2017 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>