Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
chart_shader_presets.hpp File Reference
#include <pulp/canvas/canvas.hpp>
#include <string>
#include <string_view>
#include <vector>

Go to the source code of this file.

Classes

struct  pulp::view::ChartShaderPresetOptions
struct  pulp::view::ChartShaderPreset

Namespaces

namespace  pulp
namespace  pulp::view
 Hover-cursor tracking for platform window hosts.

Enumerations

enum class  pulp::view::ChartProfile { pulp::view::round , pulp::view::flat , pulp::view::chamfer }
 Cross-section of a tube or light pipe across its band. More...

Functions

const std::vector< std::string > & pulp::view::chart_shader_preset_names ()
 The preset names: bevel, inset-channel, tube, light-pipe, centre-highlight and glow.
ChartShaderPreset pulp::view::make_chart_shader_preset (std::string_view name, const ChartShaderPresetOptions &options={})
 Build the named preset's chart shader with options baked in as constants.
float pulp::view::chart_glow_reach (float sigma, float intensity)
 Distance past which a glow of sigma and intensity is below one 8-bit step (intensity * exp(-r^2 / (2 sigma^2)) < 1/255), and never less than three sigma.
bool pulp::view::parse_chart_profile (std::string_view name, ChartProfile &out)
 Parse a profile name (round, flat, chamfer).

Variables

constexpr float pulp::view::kChartGlowSigmaMax = 256.0f
 Largest accepted glow_sigma.