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

#include <ttauri/GUI/pipeline_box_vertex.hpp>

Public Member Functions

 vertex (f32x4 position, f32x4 cornerCoordinate, color backgroundColor, float borderSize, color borderColor, f32x4 cornerShapes, aarect clippingRectangle) noexcept
 

Static Public Member Functions

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

Data Fields

sfloat_rgb32 position
 The pixel-coordinates where the origin is located relative to the bottom-left corner of the window.
 
sfloat_rgba32 clippingRectangle
 The position in pixels of the clipping rectangle relative to the bottom-left corner of the window, and extent in pixels.
 
sfloat_rgba32 cornerCoordinate
 Double 2D coordinates inside the quad, used to determine the distance from the sides and corner inside the fragment shader.
 
sfloat_rgba16 backgroundColor
 background color of the box.
 
sfloat_rgba16 borderColor
 border color of the box.
 
sfloat_rgba16 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

sfloat_rgba16 tt::pipeline_box::vertex::backgroundColor

background color of the box.

◆ borderColor

sfloat_rgba16 tt::pipeline_box::vertex::borderColor

border color of the box.

◆ clippingRectangle

sfloat_rgba32 tt::pipeline_box::vertex::clippingRectangle

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

◆ cornerCoordinate

sfloat_rgba32 tt::pipeline_box::vertex::cornerCoordinate

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

◆ cornerShapes

sfloat_rgba16 tt::pipeline_box::vertex::cornerShapes

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

◆ position

sfloat_rgb32 tt::pipeline_box::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: