mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-14 07:23:26 +00:00
added some nodiscards
This commit is contained in:
@@ -19,7 +19,7 @@ namespace uml::color
|
||||
public:
|
||||
Color(float r, float g, float b, float a);
|
||||
static Color FromRGBA(uint8_t r, uint8_t g, uint8_t b, uint8_t a);
|
||||
explicit Color(const Vector4& vec);
|
||||
explicit Color(Vector4 vec);
|
||||
[[nodiscard]] Color Blend(const Color& other, float ratio) const;
|
||||
|
||||
[[nodiscard]] static Color Red() {return {1.f, 0.f, 0.f, 1.f};}
|
||||
|
||||
Reference in New Issue
Block a user