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