/usr/share/qt5/doc/qtquick/qquickframebufferobject.html is in qtdeclarative5-doc-html 5.2.1-3ubuntu15.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qquickframebufferobject.cpp -->
<title>QQuickFramebufferObject Class | QtQuick 5.2</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li>Qt 5.2</li>
<li><a href="qtquick-index.html">Qt Quick</a></li>
<li><a href="qtquick-module.html">C++ Classes</a></li>
<li>QQuickFramebufferObject</li>
<li id="buildversion">
Qt 5.2.1 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QQuickFramebufferObject Class</h1>
<!-- $$$QQuickFramebufferObject-brief -->
<p>The QQuickFramebufferObject class is a convenience class for integrating OpenGL rendering using a framebuffer object (FBO) with Qt Quick. <a href="#details">More...</a></p>
<!-- @@@QQuickFramebufferObject -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include <QQuickFramebufferObject></span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> <tt>QT += quick</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.2</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qquickitem.html">QQuickItem</a>.</td></tr></table><ul>
<li><a href="qquickframebufferobject-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qquickframebufferobject-renderer.html">Renderer</a></b></td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li class="fn"><b><a href="qquickframebufferobject.html#textureFollowsItemSize-prop">textureFollowsItemSize</a></b> : bool</li>
</ul>
<ul>
<li class="fn">23 properties inherited from <a href="qquickitem.html#properties">QQuickItem</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qquickframebufferobject.html#QQuickFramebufferObject">QQuickFramebufferObject</a></b>(QQuickItem *<i> parent</i> = 0)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual Renderer * </td><td class="memItemRight bottomAlign"><b><a href="qquickframebufferobject.html#createRenderer">createRenderer</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickframebufferobject.html#textureFollowsItemSize-prop">setTextureFollowsItemSize</a></b>(bool<i> follows</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickframebufferobject.html#textureFollowsItemSize-prop">textureFollowsItemSize</a></b>() const</td></tr>
</table>
<ul>
<li class="fn">90 public functions inherited from <a href="qquickitem.html#public-functions">QQuickItem</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickframebufferobject.html#textureFollowsItemSize-prop">textureFollowsItemSizeChanged</a></b>(bool)</td></tr>
</table>
<ul>
<li class="fn">1 signal inherited from <a href="qquickitem.html#signals">QQuickItem</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 public slot inherited from <a href="qquickitem.html#public-slots">QQuickItem</a></li>
<li class="fn">33 protected functions inherited from <a href="qquickitem.html#protected-functions">QQuickItem</a></li>
</ul>
<a name="details"></a>
<!-- $$$QQuickFramebufferObject-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QQuickFramebufferObject class is a convenience class for integrating OpenGL rendering using a framebuffer object (FBO) with Qt Quick.</p>
<p>On most platforms, the rendering will occur on a dedicated thread. For this reason, the QQuickFramebufferObject class enforces a strict separation between the item implementation and the FBO rendering. All item logic, such as properties and UI-related helper functions needed by QML should be located in a QQuickFramebufferObject class subclass. Everything that relates to rendering must be located in the <a href="qquickframebufferobject-renderer.html">QQuickFramebufferObject::Renderer</a> class.</p>
<p>To avoid race conditions and read/write issues from two threads it is important that the renderer and the item never read or write shared variables. Communication between the item and the renderer should primarily happen via the <a href="qquickframebufferobject-renderer.html#synchronize">QQuickFramebufferObject::Renderer::synchronize</a>() function. This function will be called on the render thread while the GUI thread is blocked.</p>
<p>Using queued connections or events for communication between item and renderer is also possible.</p>
<p>Both the Renderer and the FBO are memory managed internally.</p>
<p>To render into the FBO, the user should subclass the Renderer class and reimplement its <a href="qquickframebufferobject-renderer.html#render">Renderer::render</a>() function. The Renderer subclass is returned from <a href="qquickframebufferobject.html#createRenderer">createRenderer</a>().</p>
<p>The size of the FBO will by default adapt to the size of the item. If a fixed size is preferred, set <a href="qquickframebufferobject.html#textureFollowsItemSize-prop">textureFollowsItemSize</a> to <tt>false</tt> and return a texture of your choosing from <a href="qquickframebufferobject-renderer.html#createFramebufferObject">QQuickFramebufferObject::Renderer::createFramebufferObject</a>().</p>
</div>
<p><b>See also </b><a href="qtquick-scenegraph-textureinsgnode-example.html">Scene Graph - Rendering FBOs</a>.</p>
<!-- @@@QQuickFramebufferObject -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$textureFollowsItemSize-prop$$$textureFollowsItemSize$$$setTextureFollowsItemSizebool$$$textureFollowsItemSizeChangedbool -->
<h3 class="fn"><a name="textureFollowsItemSize-prop"></a><span class="name">textureFollowsItemSize</span> : <span class="type">bool</span></h3>
<p>This property controls if the size of the FBO's texture should follow the dimensions of the <a href="qquickframebufferobject.html">QQuickFramebufferObject</a> item. When this property is false, the FBO will be created once the first time it is displayed. If it is set to true, the FBO will be recreated every time the dimensions of the item change.</p>
<p>The default value is <tt>true</tt>.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>textureFollowsItemSize</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureFollowsItemSize</b></span>(bool<i> follows</i>)</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>textureFollowsItemSizeChanged</b></span>(bool)</td></tr>
</table>
<!-- @@@textureFollowsItemSize -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QQuickFramebufferObject[overload1]$$$QQuickFramebufferObjectQQuickItem* -->
<h3 class="fn"><a name="QQuickFramebufferObject"></a>QQuickFramebufferObject::<span class="name">QQuickFramebufferObject</span>(<span class="type"><a href="qquickitem.html">QQuickItem</a></span> *<i> parent</i> = 0)</h3>
<p>Constructs a new <a href="qquickframebufferobject.html">QQuickFramebufferObject</a> with parent <i>parent</i>.</p>
<!-- @@@QQuickFramebufferObject -->
<!-- $$$createRenderer[overload1]$$$createRenderer -->
<h3 class="fn"><a name="createRenderer"></a><span class="type"><a href="qquickframebufferobject-renderer.html">Renderer</a></span> * QQuickFramebufferObject::<span class="name">createRenderer</span>() const<tt> [pure virtual]</tt></h3>
<p>Reimplement this function to create a renderer used to render into the FBO.</p>
<p>This function will be called on the rendering thread while the GUI thread is blocked.</p>
<!-- @@@createRenderer -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2013 Digia Plc and/or its
subsidiaries. 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> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|