mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
refactor(render): replace UI shaders with image shaders and Image widget
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user