mirror of
https://github.com/thunderbrewhq/typhoon.git
synced 2025-12-12 10:32:29 +00:00
28 lines
545 B
C++
28 lines
545 B
C++
#ifndef TEMPEST_VECTOR_C_IMVECTOR_HPP
|
|
#define TEMPEST_VECTOR_C_IMVECTOR_HPP
|
|
|
|
#include <cstdint>
|
|
|
|
class CImVector {
|
|
public:
|
|
// Static functions
|
|
static uint32_t MakeARGB(uint8_t a, uint8_t r, uint8_t g, uint8_t b);
|
|
|
|
// Member variables
|
|
union {
|
|
struct {
|
|
uint8_t b;
|
|
uint8_t g;
|
|
uint8_t r;
|
|
uint8_t a;
|
|
};
|
|
|
|
uint32_t value;
|
|
};
|
|
|
|
// Member functions
|
|
bool operator==(const CImVector& color);
|
|
void Set(float a, float r, float g, float b);
|
|
};
|
|
|
|
#endif
|