Skip to content

Kuesa::Qt3D::TextureTransform

Module: Kuesa Qt 3D API

Kuesa::Qt3D::TextureTransform provides an easy to use texture transform implementation. Given an offset, a rotation and a scale, it produces a matrix that can be directly pushed to a shader and used to transform uv coordinates. More...

#include <Kuesa/Qt3D/api/materials/texturetransform.h>

Inherits from Qt3DCore::QNode

Public Slots

Name
void setOffset(const QVector2D & offset)
void setScale(const QVector2D & scale)
void setRotation(float rotation)

Public Signals

Name
void offsetChanged(const QVector2D & offset)
void scaleChanged(const QVector2D & scale)
void rotationChanged(float rotation)
void matrixChanged(QMatrix3x3 matrix)

Public Functions

Name
TextureTransform(Qt3DCore::QNode * parent =nullptr)
~TextureTransform() =default
const QVector2D & offset() const
const QVector2D & scale() const
float rotation() const
QMatrix3x3 matrix() const

Public Properties

Name
QVector2D offset
Kuesa::Qt3D::TextureTransform provides an easy to use texture transform implementation. Given an offset, a rotation and a scale, it produces a matrix that can be directly pushed to a shader and used to transform uv coordinates.
QVector2D scale
float rotation
QMatrix3x3 matrix

Detailed Description

1
class Kuesa::Qt3D::TextureTransform;

Kuesa::Qt3D::TextureTransform provides an easy to use texture transform implementation. Given an offset, a rotation and a scale, it produces a matrix that can be directly pushed to a shader and used to transform uv coordinates.

See:

Since: Kuesa 2.0

On top of Kuesa::Qt3D::TextureTransform, Kuesa implements KHR_texture_transform

Public Slots Documentation

slot setOffset

1
2
3
void setOffset(
    const QVector2D & offset
)

slot setScale

1
2
3
void setScale(
    const QVector2D & scale
)

slot setRotation

1
2
3
void setRotation(
    float rotation
)

Public Signals Documentation

signal offsetChanged

1
2
3
void offsetChanged(
    const QVector2D & offset
)

signal scaleChanged

1
2
3
void scaleChanged(
    const QVector2D & scale
)

signal rotationChanged

1
2
3
void rotationChanged(
    float rotation
)

signal matrixChanged

1
2
3
void matrixChanged(
    QMatrix3x3 matrix
)

Public Functions Documentation

function TextureTransform

1
2
3
explicit TextureTransform(
    Qt3DCore::QNode * parent =nullptr
)

Since:

function ~TextureTransform

1
~TextureTransform() =default

function offset

1
const QVector2D & offset() const

function scale

1
const QVector2D & scale() const

function rotation

1
float rotation() const

function matrix

1
QMatrix3x3 matrix() const

Public Property Documentation

property offset

1
QVector2D offset;

Kuesa::Qt3D::TextureTransform provides an easy to use texture transform implementation. Given an offset, a rotation and a scale, it produces a matrix that can be directly pushed to a shader and used to transform uv coordinates.

See:

Since:

On top of Kuesa::Qt3D::TextureTransform, Kuesa implements KHR_texture_transform

property scale

1
QVector2D scale;

Since: Kuesa 2.0

property rotation

1
float rotation;

Since: Kuesa 2.0

property matrix

1
QMatrix3x3 matrix;

Since: Kuesa 2.0


Updated on 2023-07-03 at 11:02:09 +0000