2023-12-17 03:29:08 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Types.h"
|
|
|
|
#include "Color3.h"
|
|
|
|
|
2023-12-17 15:56:13 -08:00
|
|
|
namespace ehs
|
2023-12-17 03:29:08 -08:00
|
|
|
{
|
|
|
|
class Color4
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
float r;
|
|
|
|
float g;
|
|
|
|
float b;
|
|
|
|
float a;
|
|
|
|
|
|
|
|
Color4();
|
|
|
|
|
|
|
|
Color4(const float scalar);
|
|
|
|
|
|
|
|
explicit Color4(const Color3& color);
|
|
|
|
|
|
|
|
Color4(const float r, const float g, const float b, const float a = 1.0f);
|
|
|
|
|
|
|
|
Color4(const Color4& color);
|
|
|
|
|
|
|
|
Color4& operator=(const float scalar);
|
|
|
|
|
|
|
|
Color4& operator=(const Color3& color);
|
|
|
|
|
|
|
|
Color4& operator=(const Color4& color);
|
|
|
|
|
|
|
|
bool operator==(const Color4& color) const;
|
|
|
|
|
|
|
|
bool operator!=(const Color4& color) const;
|
|
|
|
|
|
|
|
float operator[](const UInt_64 i) const;
|
|
|
|
|
|
|
|
float& operator[](const UInt_64 i);
|
|
|
|
|
|
|
|
Color4& operator*=(const Color4& color);
|
|
|
|
|
|
|
|
Color4 operator*(const Color4& color) const;
|
|
|
|
};
|
|
|
|
}
|