このページでは

Qt3DExtras::QTextureMaterial Class

class Qt3DExtras::QTextureMaterial

QTextureMaterial は、シンプルな非照明テクスチャマテリアルのデフォルトの実装を提供します。詳細...

ヘッダー: #include <qtexturematerial.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
継承元: Qt3DRender::QMaterial
ステータス: 非推奨

このクラスは非推奨です。新しいコードでの使用は強く推奨しません。

プロパティ

パブリック関数

QTextureMaterial(Qt3DCore::QNode *parent = nullptr)
virtual ~QTextureMaterial()
bool isAlphaBlendingEnabled() const
Qt3DRender::QAbstractTexture *texture() const
QVector2D textureOffset() const
QMatrix3x3 textureTransform() const

パブリックスロット

void setAlphaBlendingEnabled(bool enabled)
void setTexture(Qt3DRender::QAbstractTexture *texture)
void setTextureOffset(QVector2D textureOffset)
void setTextureTransform(const QMatrix3x3 &matrix)

シグナル

void alphaBlendingEnabledChanged(bool enabled)
void textureChanged(Qt3DRender::QAbstractTexture *texture)
void textureOffsetChanged(QVector2D textureOffset)
void textureTransformChanged(const QMatrix3x3 &textureTransform)

詳細な説明

このマテリアルは、1回のレンダリングパスでエフェクトを適用するアプローチを採用しています。OpenGL 2、OpenGL 3 以降、および OpenGL ES 2 向けのテクニックが提供されています。

プロパティのドキュメント

alphaBlending : bool

「diffuse」プロパティから得られるアルファ情報が、レンダリング時に考慮されるかどうかを示します。デフォルトは false です。

アクセス関数:

bool isAlphaBlendingEnabled() const
void setAlphaBlendingEnabled(bool enabled)

通知シグナル:

void alphaBlendingEnabledChanged(bool enabled)

texture : Qt3DRender::QAbstractTexture*

マテリアルで使用されている現在のテクスチャを保持します。

アクセス関数:

Qt3DRender::QAbstractTexture *texture() const
void setTexture(Qt3DRender::QAbstractTexture *texture)

通知シグナル:

void textureChanged(Qt3DRender::QAbstractTexture *texture)

textureOffset : QVector2D

これはユーティリティプロパティです。一般的なテクスチャ変換行列の平行移動成分を設定します

アクセス関数:

QVector2D textureOffset() const
void setTextureOffset(QVector2D textureOffset)

通知シグナル:

void textureOffsetChanged(QVector2D textureOffset)

textureTransform : QMatrix3x3

現在のテクスチャ変換を保持します。これは、レンダリング時にテクスチャ座標に適用されます。デフォルトは単位行列です。

アクセス関数:

QMatrix3x3 textureTransform() const
void setTextureTransform(const QMatrix3x3 &matrix)

通知シグナル:

void textureTransformChanged(const QMatrix3x3 &textureTransform)

メンバ関数のドキュメント

[explicit] QTextureMaterial::QTextureMaterial(Qt3DCore::QNode *parent = nullptr)

親オブジェクトparent を使用して、新しい QTextureMaterial インスタンスを作成します。

[virtual noexcept] QTextureMaterial::~QTextureMaterial()

QTextureMaterial インスタンスを破棄します。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. 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.