HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Data Fields
tt::PipelineBox::Vertex Struct Reference

#include <TTauri/GUI/PipelineBox_Vertex.hpp>

Public Member Functions

 Vertex (vec position, vec cornerCoordinate, vec backgroundColor, float borderSize, vec borderColor, vec cornerShapes, aarect clippingRectangle) noexcept
 

Static Public Member Functions

static vk::VertexInputBindingDescription inputBindingDescription ()
 
static std::vector< vk::VertexInputAttributeDescription > inputAttributeDescriptions ()
 

Data Fields

R32G32B32SFloat position
 The pixel-coordinates where the origin is located relative to the bottom-left corner of the window.
 
R32G32B32A32SFloat clippingRectangle
 The position in pixels of the clipping rectangle relative to the bottom-left corner of the window, and extent in pixels.
 
R32G32B32A32SFloat cornerCoordinate
 Double 2D coordinates inside the quad, used to determine the distance from the sides and corner inside the fragment shader.
 
R16G16B16A16SFloat backgroundColor
 background color of the box.
 
R16G16B16A16SFloat borderColor
 border color of the box.
 
R16G16B16A16SFloat cornerShapes
 Shape of each corner, negative values are cut corners, positive values are rounded corners.
 
float borderSize
 

Detailed Description

A vertex defining a rectangle on a window. The vertex shader will convert window pixel-coordinates to normalized projection-coordinates.

Field Documentation

◆ backgroundColor

R16G16B16A16SFloat tt::PipelineBox::Vertex::backgroundColor

background color of the box.

◆ borderColor

R16G16B16A16SFloat tt::PipelineBox::Vertex::borderColor

border color of the box.

◆ clippingRectangle

R32G32B32A32SFloat tt::PipelineBox::Vertex::clippingRectangle

The position in pixels of the clipping rectangle relative to the bottom-left corner of the window, and extent in pixels.

◆ cornerCoordinate

R32G32B32A32SFloat tt::PipelineBox::Vertex::cornerCoordinate

Double 2D coordinates inside the quad, used to determine the distance from the sides and corner inside the fragment shader.

◆ cornerShapes

R16G16B16A16SFloat tt::PipelineBox::Vertex::cornerShapes

Shape of each corner, negative values are cut corners, positive values are rounded corners.

◆ position

R32G32B32SFloat tt::PipelineBox::Vertex::position

The pixel-coordinates where the origin is located relative to the bottom-left corner of the window.


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