2024-02-05 22:25:30 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Types.h"
|
|
|
|
#include "Color3.h"
|
|
|
|
|
|
|
|
namespace ehs
|
|
|
|
{
|
2024-07-24 01:36:20 -07:00
|
|
|
class EHS_LIB_IO Color4
|
2024-02-05 22:25:30 -08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
float r;
|
|
|
|
float g;
|
|
|
|
float b;
|
|
|
|
float a;
|
|
|
|
|
|
|
|
Color4();
|
|
|
|
|
2024-07-24 01:36:20 -07:00
|
|
|
Color4(float scalar);
|
2024-02-05 22:25:30 -08:00
|
|
|
|
|
|
|
explicit Color4(const Color3& color);
|
|
|
|
|
2024-07-24 01:36:20 -07:00
|
|
|
Color4(float r, float g, float b, float a = 1.0f);
|
2024-02-05 22:25:30 -08:00
|
|
|
|
|
|
|
Color4(const Color4& color);
|
|
|
|
|
2024-07-24 01:36:20 -07:00
|
|
|
Color4& operator=(float scalar);
|
2024-02-05 22:25:30 -08:00
|
|
|
|
|
|
|
Color4& operator=(const Color3& color);
|
|
|
|
|
|
|
|
Color4& operator=(const Color4& color);
|
|
|
|
|
|
|
|
bool operator==(const Color4& color) const;
|
|
|
|
|
|
|
|
bool operator!=(const Color4& color) const;
|
|
|
|
|
2024-07-24 01:36:20 -07:00
|
|
|
float operator[](UInt_64 i) const;
|
2024-02-05 22:25:30 -08:00
|
|
|
|
2024-07-24 01:36:20 -07:00
|
|
|
float& operator[](UInt_64 i);
|
2024-02-05 22:25:30 -08:00
|
|
|
|
|
|
|
Color4& operator*=(const Color4& color);
|
|
|
|
|
|
|
|
Color4 operator*(const Color4& color) const;
|
|
|
|
};
|
|
|
|
}
|