Testing font and color font
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user