HikoGUI
A low latency retained GUI
|
#include <hikogui/image/sdf_r8.hpp>
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 |
A pixel of a single channel signed distance field.
https://steamcdn-a.akamaihd.net/apps/valve/2007/SIGGRAPH2007_AlphaTestedMagnification.pdf
|
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).