TextureUniform Class | Qt 3D 5.6

Qt 5.6 | Qt 3D | C++ Classes | TextureUniform

Qt 5.6.2 Reference Documentation

# TextureUniform Class

(Qt3DRender::Render::TextureUniform)

Inherits: | QUniformValue

- List of all members, including inherited members

## Public Functions

| TextureUniform()
void | setTextureId(const Qt3DCore::QNodeId &id)
void | setTextureUnit(int textureUnit)
Qt3DCore::QNodeId | textureId() const

## Reimplemented Public Functions

virtual void | apply(GraphicsContext *ctx, const ShaderUniform &description) const
virtual bool | isTexture() const
virtual bool | operator==(const QUniformValue &other)

- 4 public functions inherited from Qt3DRender::Render::QUniformValue

### Additional Inherited Members

- 1 static public member inherited from Qt3DRender::Render::QUniformValue

## Member Function Documentation

### TextureUniform::TextureUniform()

Default constructs an instance of TextureUniform.

### `[virtual]` void TextureUniform::apply(GraphicsContext *ctx, const ShaderUniform &description) const

### `[virtual]` bool TextureUniform::isTexture() const

### void TextureUniform::setTextureId(const Qt3DCore::QNodeId &id)

See also textureId().

### void TextureUniform::setTextureUnit(int textureUnit)

### Qt3DCore::QNodeId TextureUniform::textureId() const

See also setTextureId().

### `[virtual]` bool TextureUniform::operator==(const QUniformValue &other)