Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Colours.cpp
Go to the documentation of this file.
1
2
3#include "Headers/Colours.h"
4
5namespace Divide {
6 namespace DefaultColours {
8 FColour4 WHITE = { 1.0f, 1.0f, 1.0f, 1.0f };
9 FColour4 BLACK = { 0.0f, 0.0f, 0.0f, 1.0f };
10 FColour4 RED = { 1.0f, 0.0f, 0.0f, 1.0f };
11 FColour4 GREEN = { 0.0f, 1.0f, 0.0f, 1.0f };
12 FColour4 BLUE = { 0.0f, 0.0f, 1.0f, 1.0f };
13
14 UColour4 WHITE_U8 = { 255, 255, 255, 255 };
15 UColour4 BLACK_U8 = { 0, 0, 0, 255 };
16 UColour4 RED_U8 = { 255, 0, 0, 255 };
17 UColour4 GREEN_U8 = { 0, 255, 0, 255 };
18 UColour4 BLUE_U8 = { 0, 0, 255, 255 };
19
20 FColour4 DIVIDE_BLUE = { 0.1f, 0.1f, 0.8f, 1.0f };
21 UColour4 DIVIDE_BLUE_U8 = { 26, 26, 204, 255 };
22
24 return vec4<U8>(Random<U8>(255),
25 Random<U8>(255),
26 Random<U8>(255),
27 to_U8(255));
28 }
29
32 }
33
34 } // namespace DefaultColours
35} //namespace Divide
UColour4 DIVIDE_BLUE_U8
Definition: Colours.cpp:21
vec4< U8 > RANDOM()
Definition: Colours.cpp:23
vec4< F32 > RANDOM_NORMALIZED()
Definition: Colours.cpp:30
FColour4 WHITE
Random stuff added for convenience.
Definition: Colours.cpp:8
FColour4 ToFloatColour(const UColour4 &byteColour) noexcept
Definition: MathHelper.cpp:268
Handle console commands that start with a forward slash.
Definition: AIProcessor.cpp:7
constexpr U8 to_U8(const T value)