refactor(render): replace UI shaders with image shaders and Image widget

This commit is contained in:
2026-07-11 14:54:08 +08:00
parent 09653c318a
commit 2d28488126
19 changed files with 213 additions and 127 deletions

View File

@@ -11,21 +11,6 @@ Label& Label::set_text(std::string_view text) {
return *this;
}
Label& Label::set_position(const glm::vec2& pos) {
return set_position(pos.x, pos.y);
}
Label& Label::set_position(float x, float y) {
m_pos.x = x;
m_pos.y = y;
return *this;
}
Label& Label::set_scale(float scale) {
m_scale = scale;
return *this;
}
Label& Label::set_color(Color color) {
m_text.color = color;
return *this;
@@ -52,7 +37,6 @@ void Label::update_vertices() {
}
const UIVertexData& Label::data() const { return m_data; }
const glm::vec2& Label::pos() const { return m_pos; }
const TextStyle& Label::text_style() const { return m_text; }
float Label::scale() const { return m_scale; }
} // namespace Cubed