Testing font and color font

This commit is contained in:
2023-06-15 20:48:25 +02:00
parent 501ed1cd35
commit d40486a308
5 changed files with 61 additions and 12 deletions

View File

@@ -34,11 +34,16 @@ namespace JabyEngine {
}
template<typename T>
const T& concat(const T& obj) {
T& concat(T& obj) {
Link::set_adr(&obj);
return obj;
}
template<typename T>
const T& concat(const T& obj) {
return concat(const_cast<T&>(obj));
}
constexpr void terminate() {
this->value |= TerminationValue;
}

View File

@@ -78,20 +78,20 @@ namespace JabyEngine {
return Color24(0xFF, 0xFF, 0xFF);
}
static constexpr Color24 Red() {
return Color24(0xFF, 0x0, 0x0);
static constexpr Color24 Red(uint8_t base = 0xFF) {
return Color24(base, 0x0, 0x0);
}
static constexpr Color24 Green() {
return Color24(0x0, 0xFF, 0x0);
static constexpr Color24 Green(uint8_t base = 0xFF) {
return Color24(0x0, base, 0x0);
}
static constexpr Color24 Blue() {
return Color24(0x0, 0x0, 0xFF);
static constexpr Color24 Blue(uint8_t base = 0xFF) {
return Color24(0x0, 0x0, base);
}
static constexpr Color24 Yellow() {
return Color24(0xFF, 0xFF, 0x0);
static constexpr Color24 Yellow(uint8_t base = 0xFF) {
return Color24(base, base, 0x0);
}
constexpr Color24 invert() const {