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
Public Signals
Public Functions
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
| 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
| void setOffset(
const QVector2D & offset
)
|
slot setScale
| void setScale(
const QVector2D & scale
)
|
slot setRotation
| void setRotation(
float rotation
)
|
Public Signals Documentation
signal offsetChanged
| void offsetChanged(
const QVector2D & offset
)
|
signal scaleChanged
| void scaleChanged(
const QVector2D & scale
)
|
signal rotationChanged
| void rotationChanged(
float rotation
)
|
signal matrixChanged
| void matrixChanged(
QMatrix3x3 matrix
)
|
Public Functions Documentation
function TextureTransform
| explicit TextureTransform(
Qt3DCore::QNode * parent =nullptr
)
|
Since:
function ~TextureTransform
| ~TextureTransform() =default
|
function offset
| const QVector2D & offset() const
|
function scale
| const QVector2D & scale() const
|
function rotation
function matrix
| QMatrix3x3 matrix() const
|
Public Property Documentation
property 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
Since: Kuesa 2.0
property rotation
Since: Kuesa 2.0
property matrix
Since: Kuesa 2.0
Updated on 2023-07-03 at 11:02:09 +0000