AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
ATexturedBrush Struct Reference

Detailed Description

Brush which draws texture (raster image).

Signals and public fields

_< ITexturetexture
 
AOptional< glm::vec2 > uv1
 
AOptional< glm::vec2 > uv2
 
ImageRendering imageRendering = ImageRendering::PIXELATED
 
Repeat repeat = Repeat::NONE
 

Member Data Documentation

◆ imageRendering

ImageRendering ATexturedBrush::imageRendering = ImageRendering::PIXELATED

Optional. Controls how does the image is scaled.

Warning!
When set to ImageRendering::SMOOTH, on software renderer it produces extra CPU costs.

◆ repeat

Repeat ATexturedBrush::repeat = Repeat::NONE

Optional. Controls how does the image behaves when it's size is not enough to cover the whole rect.

◆ uv1

AOptional<glm::vec2> ATexturedBrush::uv1

Optional. Top left UV coords of the texture.

Warning!
When set, on software renderer it produces extra CPU costs.

◆ uv2

AOptional<glm::vec2> ATexturedBrush::uv2

Optional. Bottom right UV coords of the texture.

Warning!
When set, on software renderer it produces extra CPU costs.

#include <AUI/Render/ABrush.h>


The documentation for this struct was generated from the following file: