TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::QuadPrimitive Struct Reference

#include <gui_core/graphics/gui_render_primitives.h>

Public Attributes

glsl_float4 transform0 = { 1, 0, 0 }
glsl_float4 transform1 = { 0, 1, 0 }
tachyon::int2 clipMin = { 0,0 }
tachyon::int2 clipMax = { 0,0 }
tachyon::int2 pos = { 0,0 }
tachyon::int2 size = { 0,0 }
tachyon::ImageIndex textureIndex = tachyon::ImageIndex::Invalid
int16_t colorIndex = 0
int16_t blur = 0
 shadow blur, pixels; pos/size include it on every side
float cornerRadius = 0.0f
uint32_t displayFlags = 0
 ImageDisplay::PackedFlags; 0 shows the color as it is.
glsl_float4 uvRect = { 0, 0, 1, 1 }
 The part of the texture a StretchedTexture color style stretches over the quad: { min.x, min.y, max.x, max.y } in UV.
glsl_float4 tint = { 1, 1, 1, 1 }
 ImageDisplay::tint, multiplying the color.

Member Data Documentation

◆ transform0

glsl_float4 tachyon::QuadPrimitive::transform0 = { 1, 0, 0 }

◆ transform1

glsl_float4 tachyon::QuadPrimitive::transform1 = { 0, 1, 0 }

◆ clipMin

tachyon::int2 tachyon::QuadPrimitive::clipMin = { 0,0 }

◆ clipMax

tachyon::int2 tachyon::QuadPrimitive::clipMax = { 0,0 }

◆ pos

tachyon::int2 tachyon::QuadPrimitive::pos = { 0,0 }

◆ size

tachyon::int2 tachyon::QuadPrimitive::size = { 0,0 }

◆ textureIndex

tachyon::ImageIndex tachyon::QuadPrimitive::textureIndex = tachyon::ImageIndex::Invalid

◆ colorIndex

int16_t tachyon::QuadPrimitive::colorIndex = 0

◆ blur

int16_t tachyon::QuadPrimitive::blur = 0

shadow blur, pixels; pos/size include it on every side

◆ cornerRadius

float tachyon::QuadPrimitive::cornerRadius = 0.0f

◆ displayFlags

uint32_t tachyon::QuadPrimitive::displayFlags = 0

ImageDisplay::PackedFlags; 0 shows the color as it is.

◆ uvRect

glsl_float4 tachyon::QuadPrimitive::uvRect = { 0, 0, 1, 1 }

The part of the texture a StretchedTexture color style stretches over the quad: { min.x, min.y, max.x, max.y } in UV.

◆ tint

glsl_float4 tachyon::QuadPrimitive::tint = { 1, 1, 1, 1 }

ImageDisplay::tint, multiplying the color.


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