Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
sdl_spectrum_io.cpp File Reference
#include "Actor/SDLExtension/sdl_spectrum_io.h"
#include "SDL/sdl_exceptions.h"
#include "SDL/Tokenizer.h"
#include "SDL/sdl_helpers.h"
#include "SDL/SdlInputClause.h"
#include "SDL/Introspect/TSdlEnum.h"
#include "Math/Color/color_spaces.h"
#include "Math/Color/spectral_samples.h"
#include "Math/math.h"
#include <Common/assertion.h>
#include <vector>
#include <string>

Namespaces

namespace  ph
 The root for all renderer implementations.
 
namespace  ph::sdl
 

Functions

math::Spectrum ph::sdl::tristimulus_to_spectrum (const math::TVector3< math::ColorValue > &tristimulus, math::EColorSpace colorSpace, math::EColorUsage usage)
 
math::Spectrum ph::sdl::load_spectrum (std::string_view sdlSpectrumStr, std::string_view tag, math::EColorUsage usage)
 
void ph::sdl::save_spectrum (const math::Spectrum &spectrum, std::string &out_sdlSpectrumStr, std::string &out_tag)