liballofw
color.h
Go to the documentation of this file.
1 #ifndef IV_MATH_COLOR_H
2 #define IV_MATH_COLOR_H
3 
4 #include "vector.h"
5 
6 namespace allofw {
7 
9  struct Color {
11  float r, g, b, a;
13  Color() = default;
15  Color(float r_, float g_, float b_, float a_ = 1) : r(r_), g(g_), b(b_), a(a_) { }
16  };
17 
18 }
19 
20 #endif
float b
Definition: color.h:11
Color struct.
Definition: color.h:9
Definition: allofw.h:12
float g
Definition: color.h:11
float a
Definition: color.h:11
Color(float r_, float g_, float b_, float a_=1)
Initialize with RGBA.
Definition: color.h:15
float r
RGBA.
Definition: color.h:11
Color()=default
Default constructor, uninitialized.