EHS
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
Definition: Color4.h:9
float g
Definition: Color4.h:12
float r
Definition: Color4.h:11
float b
Definition: Color4.h:13
float a
Definition: Color4.h:14
Definition: Anchor.h:6