feat(new_editor): add project panel and polish dock chrome

This commit is contained in:
2026-04-11 20:20:30 +08:00
parent 030230eb1f
commit 0a015b52ca
12 changed files with 1455 additions and 52 deletions

View File

@@ -31,6 +31,7 @@ enum class UIDrawCommandType : std::uint8_t {
RectOutline,
FilledRectLinearGradient,
Line,
FilledTriangle,
FilledCircle,
CircleOutline,
Text,
@@ -149,6 +150,20 @@ public:
return AddCommand(std::move(command));
}
UIDrawCommand& AddFilledTriangle(
const UIPoint& a,
const UIPoint& b,
const UIPoint& c,
const UIColor& color) {
UIDrawCommand command = {};
command.type = UIDrawCommandType::FilledTriangle;
command.position = a;
command.uvMin = b;
command.uvMax = c;
command.color = color;
return AddCommand(std::move(command));
}
UIDrawCommand& AddFilledCircle(
const UIPoint& center,
float radius,