opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
rgba.h File Reference
#include <liboscar/graphics/color_component.h>
#include <liboscar/graphics/rgb.h>
#include <liboscar/maths/common_functions.h>
#include <liboscar/maths/vector.h>
#include <liboscar/utilities/hash_helpers.h>
#include <algorithm>
#include <concepts>
#include <cstddef>
#include <functional>
#include <ostream>
#include <tuple>
#include <utility>
Include dependency graph for rgba.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  osc::Rgba< T >
 
struct  std::tuple_size< osc::Rgba< T > >
 
struct  std::tuple_element< I, osc::Rgba< T > >
 
struct  std::hash< osc::Rgba< T > >
 

Namespaces

namespace  osc
 

Functions

template<ColorComponent T>
std::ostream & osc::operator<< (std::ostream &o, const Rgba< T > &rgba)
 
template<ColorComponent T>
constexpr const Tosc::value_ptr (const Rgba< T > &rgba)
 
template<ColorComponent T>
constexpr Tosc::value_ptr (Rgba< T > &rgba)
 
template<size_t I, ColorComponent T>
constexpr const Tosc::get (const Rgba< T > &rgba)
 
template<size_t I, ColorComponent T>
constexpr Tosc::get (Rgba< T > &rgba)
 
template<size_t I, ColorComponent T>
constexpr T && osc::get (Rgba< T > &&rgba)
 
template<size_t I, ColorComponent T>
constexpr const T && osc::get (const Rgba< T > &&rgba)
 
template<ColorComponent T, std::invocable< const T & > UnaryOperation>
constexpr auto osc::map (const Rgba< T > &x, UnaryOperation op) -> Rgba< decltype(std::invoke(op, x[0]))>
 
template<ColorComponent T, std::invocable< const T &, const T & > BinaryOperation>
constexpr auto osc::map (const Rgba< T > &x, const Rgba< T > &y, BinaryOperation op) -> Rgba< decltype(std::invoke(op, x[0], y[0]))>
 
template<ColorComponent T, typename TInterpolant >
constexpr auto osc::lerp (const Rgba< T > &x, const Rgba< T > &y, TInterpolant t)
 
template<ColorComponent T>
constexpr Rgba< Tosc::saturate (const Rgba< T > &x)