Add color class

Add Palladium Unique and Shared defs
Make stb_image an internal dependency
Start some work on font loader
This commit is contained in:
2025-12-07 18:08:36 +01:00
parent c18ef2161a
commit 28d2e291b3
13 changed files with 267 additions and 20 deletions

View File

@@ -33,8 +33,8 @@ void Iron::Drawlist::Clear() {
pLayer = 0;
}
Iron::Command::ref Iron::Drawlist::NewCommand() {
auto ret = std::make_unique<Command>();
Iron::Command::Ref Iron::Drawlist::NewCommand() {
auto ret = Command::New();
ret->Layer = pLayer;
ret->Index = pData.size();
ret->Tex = pTex;
@@ -48,7 +48,7 @@ void Iron::Drawlist::clipCmd(Command* ptr) {
}
}
void Iron::Drawlist::Push(Command::ref cmd) { pData.push_back(std::move(cmd)); }
void Iron::Drawlist::Push(Command::Ref cmd) { pData.push_back(std::move(cmd)); }
void Iron::Drawlist::DrawSolid() { pTex = Iron::WhiteTex(); }