<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qforwardrenderer.cpp --> <title>ForwardRenderer QML Type | Qt 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="qt3d-index.html">Qt 3D</a></td><td ><a href="qt3d-core-qmlmodule.html">QML Types</a></td><td >ForwardRenderer 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">ForwardRenderer QML Type</h1> <span class="subtitle"></span> <!-- $$$ForwardRenderer-brief --> <p>The <a href="qml-qt3d-extras-forwardrenderer.html">ForwardRenderer</a> provides a default <a href="qt3drender-framegraph.html">FrameGraph</a> implementation of a forward renderer. <a href="#details">More...</a></p> <!-- @@@ForwardRenderer --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import Qt3D.Extras 2.0</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.7</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Instantiates:</td><td class="memItemRight bottomAlign"> <a href="qml-qt3d-extras-forwardrenderer.html"><a href="qt3dextras-qforwardrenderer.html">QForwardRenderer</a></td></tr></table></div><ul> <li><a href="qml-qt3d-extras-forwardrenderer-members.html">List of all members, including inherited members</a></li> <li><a href="qml-qt3d-extras-forwardrenderer-obsolete.html">Obsolete members</a></li> </ul> <a name="properties"></a> <h2 id="properties">Properties</h2> <ul> <li class="fn"><b><b><a href="qml-qt3d-extras-forwardrenderer.html#camera-prop">camera</a></b></b> : Entity</li> <li class="fn"><b><b><a href="qml-qt3d-extras-forwardrenderer.html#clearColor-prop">clearColor</a></b></b> : color</li> <li class="fn"><b><b><a href="qml-qt3d-extras-forwardrenderer.html#frustumCulling-prop">frustumCulling</a></b></b> : color</li> <li class="fn"><b><b><a href="qml-qt3d-extras-forwardrenderer.html#gamma-prop">gamma</a></b></b> : color</li> <li class="fn"><b><b><a href="qml-qt3d-extras-forwardrenderer.html#surface-prop">surface</a></b></b> : Object</li> <li class="fn"><b><b><a href="qml-qt3d-extras-forwardrenderer.html#viewportRect-prop">viewportRect</a></b></b> : rect</li> </ul> <!-- $$$ForwardRenderer-description --> <a name="details"></a> <h2 id="details">Detailed Description</h2> <p>Forward rendering is what OpenGL traditionally uses. It renders directly to the backbuffer one object at a time shading each one as it goes.</p> <p><a href="qml-qt3d-extras-forwardrenderer.html">ForwardRenderer</a> is a single leaf <a href="qt3drender-framegraph.html">FrameGraph</a> tree which contains a Viewport, a <a href="qml-qt3d-render-cameraselector.html">CameraSelector</a>, and a <a href="qml-qt3d-render-clearbuffers.html">ClearBuffers</a>. The <a href="qml-qt3d-extras-forwardrenderer.html">ForwardRenderer</a> has a default requirement filter key whose name is "renderingStyle" and value "forward". If you need to filter out your techniques, you should do so based on that filter key.</p> <p>By default the viewport occupies the whole screen and the clear color is white. Frustum culling is also enabled.</p> <!-- @@@ForwardRenderer --> <h2>Property Documentation</h2> <!-- $$$camera --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="camera-prop"> <td class="tblQmlPropNode"><p> <a name="camera-prop"></a><span class="name">camera</span> : <span class="type"><a href="qml-qt3d-core-entity.html">Entity</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds the current camera entity used to render the scene.</p> <p><b>Note: </b>A camera is an Entity that has a <a href="qml-qt3d-render-cameralens.html">CameraLens</a> as one of its components.</p></div></div><!-- @@@camera --> <br/> <!-- $$$clearColor --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="clearColor-prop"> <td class="tblQmlPropNode"><p> <a name="clearColor-prop"></a><span class="name">clearColor</span> : <span class="type">color</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds the current clear color of the scene. The frame buffer is initialized to the clear color before rendering.</p> </div></div><!-- @@@clearColor --> <br/> <!-- $$$frustumCulling --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="frustumCulling-prop"> <td class="tblQmlPropNode"><p> <a name="frustumCulling-prop"></a><span class="name">frustumCulling</span> : <span class="type">color</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Indicates if the renderer applies frustum culling to the scene.</p> </div></div><!-- @@@frustumCulling --> <br/> <!-- $$$gamma --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="gamma-prop"> <td class="tblQmlPropNode"><p> <a name="gamma-prop"></a><span class="name">gamma</span> : <span class="type">color</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds the gamma value the renderer applies to the scene.</p> </div></div><!-- @@@gamma --> <br/> <!-- $$$surface --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="surface-prop"> <td class="tblQmlPropNode"><p> <a name="surface-prop"></a><span class="name">surface</span> : <span class="type">Object</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds the current render surface.</p> </div></div><!-- @@@surface --> <br/> <!-- $$$viewportRect --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="viewportRect-prop"> <td class="tblQmlPropNode"><p> <a name="viewportRect-prop"></a><span class="name">viewportRect</span> : <span class="type">rect</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds the current normalized viewport rectangle.</p> </div></div><!-- @@@viewportRect --> <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>