Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
sdl_spectrum_io.h
Go to the documentation of this file.
1#pragma once
2
3#include "Math/TVector3.h"
7
8#include <string_view>
9
10namespace ph::sdl
11{
12
14 const math::TVector3<math::ColorValue>& tristimulus,
15 math::EColorSpace colorSpace,
16 math::EColorUsage usage);
17
19 std::string_view sdlSpectrumStr,
20 std::string_view tag,
21 math::EColorUsage usage);
22
27void save_spectrum(
28 const math::Spectrum& spectrum,
29 std::string& out_sdlSpectrumStr,
30 std::string& out_tag);
31
32}// end namespace ph::sdl
EColorUsage
Definition color_enums.h:140
EColorSpace
Definition color_enums.h:7
LinearSRGBSpectrum Spectrum
Definition spectrum_fwd.h:33
Definition sdl_spectrum_io.cpp:17
math::Spectrum tristimulus_to_spectrum(const math::TVector3< math::ColorValue > &tristimulus, math::EColorSpace colorSpace, math::EColorUsage usage)
Definition sdl_spectrum_io.cpp:19
math::Spectrum load_spectrum(std::string_view sdlSpectrumStr, std::string_view tag, math::EColorUsage usage)
Definition sdl_spectrum_io.cpp:52
void save_spectrum(const math::Spectrum &spectrum, std::string &out_sdlSpectrumStr, std::string &out_tag)
Definition sdl_spectrum_io.cpp:130