|
HikoGUI
A low latency retained GUI
|
#include <ttauri/GUI/pipeline_box_vertex.hpp>
Public Member Functions | |
| vertex (aarectangle clipping_rectangle, point3 position, f32x4 corner_coordinate, color fill_color, color line_color, float line_width, tt::corner_shapes corner_shapes) 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 | clipping_rectangle |
| The position in pixels of the clipping rectangle relative to the bottom-left corner of the window, and extent in pixels. | |
| sfloat_rgba32 | corner_coordinate |
| Double 2D coordinates inside the quad, used to determine the distance from the sides and corner inside the fragment shader. | |
| sfloat_rgba16 | fill_color |
| background color of the box. | |
| sfloat_rgba16 | line_color |
| border color of the box. | |
| sfloat_rgba16 | corner_shapes |
| Shape of each corner, negative values are cut corners, positive values are rounded corners. | |
| float | line_width |
A vertex defining a rectangle on a window. The vertex shader will convert window pixel-coordinates to normalized projection-coordinates.
| sfloat_rgba32 tt::pipeline_box::vertex::clipping_rectangle |
The position in pixels of the clipping rectangle relative to the bottom-left corner of the window, and extent in pixels.
| sfloat_rgba32 tt::pipeline_box::vertex::corner_coordinate |
Double 2D coordinates inside the quad, used to determine the distance from the sides and corner inside the fragment shader.
x = Number of pixels to the right from the left edge of the quad. y = Number of pixels above the bottom edge. z = Number of pixels to the left from the right edge of the quad. w = Number of pixels below the top edge.
The rasteriser will interpolate these numbers, so that inside the fragment shader the distance from a corner can be determined easily.
| sfloat_rgba16 tt::pipeline_box::vertex::corner_shapes |
Shape of each corner, negative values are cut corners, positive values are rounded corners.
| sfloat_rgba16 tt::pipeline_box::vertex::fill_color |
background color of the box.
| sfloat_rgba16 tt::pipeline_box::vertex::line_color |
border color of the box.
| sfloat_rgb32 tt::pipeline_box::vertex::position |
The pixel-coordinates where the origin is located relative to the bottom-left corner of the window.