EHS
Loading...
Searching...
No Matches
Color3.h
Go to the documentation of this file.
1#pragma once
2
3#include "Types.h"
4
5namespace ehs
6{
7 class EHS_LIB_IO Color3
8 {
9 public:
10 float r;
11 float g;
12 float b;
13
14 Color3();
15
16 Color3(float scalar);
17
18 Color3(float r, float g, float b);
19
20 Color3(const Color3& color);
21
22 Color3& operator=(float scalar);
23
24 Color3& operator=(const Color3& color);
25
26 bool operator==(const Color3& color) const;
27
28 bool operator!=(const Color3& color) const;
29
30 float operator[](UInt_64 i) const;
31
32 float& operator[](UInt_64 i);
33
34 Color3& operator*=(const Color3& color);
35
36 Color3 operator*(const Color3& color) const;
37 };
38}
bool operator!=(const T *const first, const ehs::Str< T, N > &second)
Definition Str.h:1967
bool operator==(const T *const first, const ehs::Str< T, N > &second)
Definition Str.h:1957
float b
Definition Color3.h:12
float operator[](UInt_64 i) const
Definition Color3.cpp:57
Color3 & operator*=(const Color3 &color)
Definition Color3.cpp:87
Color3 operator*(const Color3 &color) const
Definition Color3.cpp:96
float g
Definition Color3.h:11
Color3()
Definition Color3.cpp:6
Color3 & operator=(float scalar)
Definition Color3.cpp:26
float r
Definition Color3.h:10
Definition Anchor.h:6