HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
v1::sdf_r8 Struct Reference

#include <hikogui/image/sdf_r8.hpp>

Inheritance diagram for v1::sdf_r8:
v1::snorm_r8

Public Member Functions

 sdf_r8 (sdf_r8 const &other) noexcept=default
 sdf_r8 (sdf_r8 &&other) noexcept=default
sdf_r8 & operator= (sdf_r8 const &other) noexcept=default
sdf_r8 & operator= (sdf_r8 &&other) noexcept=default
 sdf_r8 (float rhs) noexcept
sdf_r8 & operator= (float rhs) noexcept
 operator float () const noexcept
void repair () noexcept
Public Member Functions inherited from v1::snorm_r8
 snorm_r8 (snorm_r8 const &rhs) noexcept=default
 snorm_r8 (snorm_r8 &&rhs) noexcept=default
snorm_r8 & operator= (snorm_r8 const &rhs) noexcept=default
snorm_r8 & operator= (snorm_r8 &&rhs) noexcept=default
 snorm_r8 (float rhs) noexcept
snorm_r8 & operator= (float rhs) noexcept
 operator float () const noexcept

Static Public Attributes

static constexpr float max_distance = 3.0f
 Max distance in pixels represented by the signed distance field.
static constexpr float one_over_max_distance = 1.0f / max_distance

Additional Inherited Members

Data Fields inherited from v1::snorm_r8
int8_t value

Detailed Description

Field Documentation

◆ max_distance

float v1::sdf_r8::max_distance = 3.0f
staticconstexpr

Max distance in pixels represented by the signed distance field.

The max_distance determines the maximum size of the shadow compared to the font as drawn into the atlas. The maximum distance needs to be at least the diagonal distance between two pixels for proper linear-interpolation sqrt(1.0*1.0 + 1.0*1.0).


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