RayMarching  0.0.1
Simple 3D engine based on a ray marching rendering
Public Member Functions | Public Attributes | List of all members
RayMarching::color Struct Reference

3 byte color representation structure More...

#include <colors.h>

Public Member Functions

struct color mix (const struct color &other) const
 

Public Attributes

pixel R
 
pixel G
 
pixel B
 

Detailed Description

3 byte color representation structure

Member Function Documentation

◆ mix()

struct color RayMarching::color::mix ( const struct color other) const
inline

Creates arithmetic average of two colors

Parameters
othersecond color
Returns
mix of colors

Member Data Documentation

◆ B

pixel RayMarching::color::B

Blue color

◆ G

pixel RayMarching::color::G

Green color

◆ R

pixel RayMarching::color::R

Red color


The documentation for this struct was generated from the following file: