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

#include <hikogui/GFX/pipeline_alpha_vertex.hpp>

Public Member Functions

 vertex (sfloat_rgba32 position, sfloat_rgba32 clipping_rectangle, float alpha) noexcept
 
 vertex (sfloat_rgba32 position, sfloat_rgba32 clipping_rectangle, sfloat_rgba32 corner_coordinate, sfloat_rgba32 corner_radii, sfloat_rgba16 fill_color, sfloat_rgba16 line_color, float line_width) noexcept
 
 vertex (sfloat_rgba32 position, sfloat_rgba32 clipping_rectangle, sfloat_rgba32 atlas_position) noexcept
 
 vertex (point3 position, aarectangle clippingRectangle, point3 textureCoord, hi::color color) noexcept
 

Static Public Member Functions

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

Data Fields

sfloat_rgba32 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.
 
float alpha
 The alpha value of the resulting pixels inside the quad.
 
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_rgba32 corner_radii
 Shape of each corner, negative values are cut corners, positive values are rounded corners.
 
sfloat_rgba16 fill_color
 background color of the box.
 
sfloat_rgba16 line_color
 border color of the box.
 
float line_width
 
sfloat_rgba32 atlas_position
 The x, y coordinate inside the texture-atlas, z is used as an index in the texture-atlas array.
 
sfloat_rgb32 position
 The pixel-coordinates where the origin is located relative to the bottom-left corner of the window.
 
sfloat_rgba32 clippingRectangle
 Clipping rectangle. (x,y)=bottom-left, (z,w)=top-right.
 
sfloat_rgb32 textureCoord
 The x, y (relative to bottom-left) coordinate inside the texture-atlas, z is used as an index in the texture-atlas array.
 
sfloat_rgba16 color
 The color of the glyph.
 

Detailed Description

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

Field Documentation

◆ alpha

float v1::vertex::alpha

The alpha value of the resulting pixels inside the quad.

◆ atlas_position

sfloat_rgba32 v1::vertex::atlas_position

The x, y coordinate inside the texture-atlas, z is used as an index in the texture-atlas array.

◆ clipping_rectangle

sfloat_rgba32 v1::vertex::clipping_rectangle

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

◆ clippingRectangle

sfloat_rgba32 v1::vertex::clippingRectangle

Clipping rectangle. (x,y)=bottom-left, (z,w)=top-right.

◆ color

sfloat_rgba16 v1::vertex::color

The color of the glyph.

◆ corner_coordinate

sfloat_rgba32 v1::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.

◆ corner_radii

sfloat_rgba32 v1::vertex::corner_radii

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

◆ fill_color

sfloat_rgba16 v1::vertex::fill_color

background color of the box.

◆ line_color

sfloat_rgba16 v1::vertex::line_color

border color of the box.

◆ position [1/2]

sfloat_rgba32 v1::vertex::position

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

◆ position [2/2]

sfloat_rgb32 v1::vertex::position

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

◆ textureCoord

sfloat_rgb32 v1::vertex::textureCoord

The x, y (relative to bottom-left) coordinate inside the texture-atlas, z is used as an index in the texture-atlas array.


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