EHS/include/ehs/Color3.h

38 lines
641 B
C
Raw Permalink Normal View History

2024-02-05 22:25:30 -08:00
#pragma once
#include "Types.h"
namespace ehs
{
2024-07-24 01:36:20 -07:00
class EHS_LIB_IO Color3
2024-02-05 22:25:30 -08:00
{
public:
float r;
float g;
float b;
Color3();
2024-07-24 01:36:20 -07:00
Color3(float scalar);
2024-02-05 22:25:30 -08:00
2024-07-24 01:36:20 -07:00
Color3(float r, float g, float b);
2024-02-05 22:25:30 -08:00
Color3(const Color3& color);
2024-07-24 01:36:20 -07:00
Color3& operator=(float scalar);
2024-02-05 22:25:30 -08:00
Color3& operator=(const Color3& color);
bool operator==(const Color3& color) const;
bool operator!=(const Color3& 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
Color3& operator*=(const Color3& color);
Color3 operator*(const Color3& color) const;
};
}