Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > c936229ef0138f42857f36beadbeda30 > files > 842

qt3d5-doc-5.12.2-2.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" />
<!-- qtexturematerial.cpp -->
  <title>QTextureMaterial Class | Qt 3D 5.12.2</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="qt3d-index.html">Qt 3D</a></td><td ><a href="qt3d-cpp.html">C++ Classes</a></td><td >QTextureMaterial</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qt3d-index.html">Qt 5.12.2 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="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</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">QTextureMaterial Class</h1>
<span class="small-subtitle">(<a href="qt3dextras-qtexturematerial.html">Qt3DExtras::QTextureMaterial</a>)<br/></span>
<!-- $$$QTextureMaterial-brief -->
<p>The <a href="qt3dextras-qtexturematerial.html">QTextureMaterial</a> provides a default implementation of a simple unlit texture material. <a href="#details">More...</a></p>
<!-- @@@QTextureMaterial -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QTextureMaterial&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += 3dextras</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 5.9</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qt3drender-qmaterial.html">Qt3DRender::QMaterial</a></td></tr></table></div><ul>
<li><a href="qt3dextras-qtexturematerial-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><a href="qt3dextras-qtexturematerial.html#alphaBlending-prop">alphaBlending</a></b> : bool</li>
<li class="fn"><b><a href="qt3dextras-qtexturematerial.html#texture-prop">texture</a></b> : Qt3DRender::QAbstractTexture*</li>
<li class="fn"><b><a href="qt3dextras-qtexturematerial.html#textureOffset-prop">textureOffset</a></b> : QVector2D</li>
<li class="fn"><b><a href="qt3dextras-qtexturematerial.html#textureTransform-prop">textureTransform</a></b> : QMatrix3x3</li>
</ul>
<ul>
<li class="fn">1 property inherited from <a href="qt3drender-qmaterial.html#properties">Qt3DRender::QMaterial</a></li>
<li class="fn">1 property inherited from <a href="qt3dcore-qcomponent.html#properties">Qt3DCore::QComponent</a></li>
<li class="fn">3 properties inherited from <a href="qt3dcore-qnode.html#properties">Qt3DCore::QNode</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="qt3dextras-qtexturematerial.html#QTextureMaterial">QTextureMaterial</a></b>(Qt3DCore::QNode *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qtexturematerial.html#dtor.QTextureMaterial">~QTextureMaterial</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qtexturematerial.html#alphaBlending-prop">isAlphaBlendingEnabled</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qtexturematerial.html#texture-prop">texture</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVector2D </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qtexturematerial.html#textureOffset-prop">textureOffset</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMatrix3x3 </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qtexturematerial.html#textureTransform-prop">textureTransform</a></b>() const</td></tr>
</table></div>
<ul>
<li class="fn">4 public functions inherited from <a href="qt3drender-qmaterial.html#public-functions">Qt3DRender::QMaterial</a></li>
<li class="fn">2 public functions inherited from <a href="qt3dcore-qcomponent.html#public-functions">Qt3DCore::QComponent</a></li>
<li class="fn">13 public functions inherited from <a href="qt3dcore-qnode.html#public-functions">Qt3DCore::QNode</a></li>
</ul>
<a name="public-slots"></a>
<h2 id="public-slots">Public Slots</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qtexturematerial.html#alphaBlending-prop">setAlphaBlendingEnabled</a></b>(bool <i>enabled</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qtexturematerial.html#texture-prop">setTexture</a></b>(Qt3DRender::QAbstractTexture *<i>texture</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qtexturematerial.html#textureOffset-prop">setTextureOffset</a></b>(QVector2D <i>textureOffset</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qtexturematerial.html#textureTransform-prop">setTextureTransform</a></b>(const QMatrix3x3 &amp;<i>matrix</i>)</td></tr>
</table></div>
<ul>
<li class="fn">1 public slot inherited from <a href="qt3drender-qmaterial.html#public-slots">Qt3DRender::QMaterial</a></li>
<li class="fn">1 public slot inherited from <a href="qt3dcore-qcomponent.html#public-slots">Qt3DCore::QComponent</a></li>
<li class="fn">3 public slots inherited from <a href="qt3dcore-qnode.html#public-slots">Qt3DCore::QNode</a></li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qtexturematerial.html#alphaBlending-prop">alphaBlendingEnabledChanged</a></b>(bool <i>enabled</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qtexturematerial.html#texture-prop">textureChanged</a></b>(Qt3DRender::QAbstractTexture *<i>texture</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qtexturematerial.html#textureOffset-prop">textureOffsetChanged</a></b>(QVector2D <i>textureOffset</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qtexturematerial.html#textureTransform-prop">textureTransformChanged</a></b>(const QMatrix3x3 &amp;<i>textureTransform</i>)</td></tr>
</table></div>
<ul>
<li class="fn">1 signal inherited from <a href="qt3drender-qmaterial.html#signals">Qt3DRender::QMaterial</a></li>
<li class="fn">3 signals inherited from <a href="qt3dcore-qcomponent.html#signals">Qt3DCore::QComponent</a></li>
<li class="fn">4 signals inherited from <a href="qt3dcore-qnode.html#signals">Qt3DCore::QNode</a></li>
</ul>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> const QMetaObject </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qtexturematerial.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">2 protected functions inherited from <a href="qt3dcore-qnode.html#protected-functions">Qt3DCore::QNode</a></li>
</ul>
<a name="details"></a>
<!-- $$$QTextureMaterial-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qt3dextras-qtexturematerial.html">QTextureMaterial</a> provides a default implementation of a simple unlit texture material.</p>
<p>This material uses an effect with a single render pass approach. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p>
</div>
<!-- @@@QTextureMaterial -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$alphaBlending-prop$$$isAlphaBlendingEnabled$$$setAlphaBlendingEnabledbool$$$alphaBlendingEnabledChangedbool -->
<h3 class="fn" id="alphaBlending-prop"><a name="alphaBlending-prop"></a><span class="name">alphaBlending</span> : <span class="type">bool</span></h3>
<p>Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isAlphaBlendingEnabled</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlphaBlendingEnabled</b></span>(bool <i>enabled</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>alphaBlendingEnabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
</table></div>
<!-- @@@alphaBlending -->
<!-- $$$texture-prop$$$texture$$$setTextureQt3DRender::QAbstractTexture*$$$textureChangedQt3DRender::QAbstractTexture* -->
<h3 class="fn" id="texture-prop"><a name="texture-prop"></a><span class="name">texture</span> : <span class="type"><a href="qt3drender-qabstracttexture.html">Qt3DRender::QAbstractTexture</a></span>*</h3>
<p>Holds the current texture used by the material.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>texture</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTexture</b></span>(Qt3DRender::QAbstractTexture *<i>texture</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>textureChanged</b></span>(Qt3DRender::QAbstractTexture *<i>texture</i>)</td></tr>
</table></div>
<!-- @@@texture -->
<!-- $$$textureOffset-prop$$$textureOffset$$$setTextureOffsetQVector2D$$$textureOffsetChangedQVector2D -->
<h3 class="fn" id="textureOffset-prop"><a name="textureOffset-prop"></a><span class="name">textureOffset</span> : <span class="type">QVector2D</span></h3>
<p>This is a utility property. It sets the translation component of the general texture transform matrix</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QVector2D </td><td class="memItemRight bottomAlign"><span class="name"><b>textureOffset</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureOffset</b></span>(QVector2D <i>textureOffset</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>textureOffsetChanged</b></span>(QVector2D <i>textureOffset</i>)</td></tr>
</table></div>
<!-- @@@textureOffset -->
<!-- $$$textureTransform-prop$$$textureTransform$$$setTextureTransformconstQMatrix3x3&$$$textureTransformChangedconstQMatrix3x3& -->
<h3 class="fn" id="textureTransform-prop"><a name="textureTransform-prop"></a><span class="name">textureTransform</span> : <span class="type">QMatrix3x3</span></h3>
<p>Holds the current texture transform. It is applied to texture coordinates at render time. Defaults to identity matrix.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QMatrix3x3 </td><td class="memItemRight bottomAlign"><span class="name"><b>textureTransform</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureTransform</b></span>(const QMatrix3x3 &amp;<i>matrix</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>textureTransformChanged</b></span>(const QMatrix3x3 &amp;<i>textureTransform</i>)</td></tr>
</table></div>
<!-- @@@textureTransform -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QTextureMaterial[overload1]$$$QTextureMaterialQt3DCore::QNode* -->
<h3 class="fn" id="QTextureMaterial"><a name="QTextureMaterial"></a>QTextureMaterial::<span class="name">QTextureMaterial</span>(<span class="type"><a href="qt3dcore-qnode.html">Qt3DCore::QNode</a></span> *<i>parent</i> = nullptr)</h3>
<p>Constructs a new <a href="qt3dextras-qtexturematerial.html">QTextureMaterial</a> instance with parent object <i>parent</i>.</p>
<!-- @@@QTextureMaterial -->
<!-- $$$~QTextureMaterial[overload1]$$$~QTextureMaterial -->
<h3 class="fn" id="dtor.QTextureMaterial"><a name="dtor.QTextureMaterial"></a><code>[virtual] </code>QTextureMaterial::<span class="name">~QTextureMaterial</span>()</h3>
<p>Destroys the <a href="qt3dextras-qtexturematerial.html">QTextureMaterial</a> instance.</p>
<!-- @@@~QTextureMaterial -->
</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>