CoriEngine
Loading...
Searching...
No Matches
Color.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  Cori
 Global engine namespace.
namespace  Cori::Graphics
 Almost everything connected to graphics is in this namespace.

Functions

consteval glm::vec4 Cori::Graphics::NormalizeHexColor32 (const uint32_t hex)
 Converts the RGBA in a hex format to a normalized vec4.
consteval glm::vec3 Cori::Graphics::NormalizeHexColor24 (const uint32_t hex)
 Converts the RGB in a hex format to a normalized vec3. Last byte corresponding to Alpha chanel is ignored.