Skip to content

Commit

Permalink
BLUGA: Add text feature
Browse files Browse the repository at this point in the history
  • Loading branch information
TTENSHII committed Nov 4, 2023
1 parent 6a46f99 commit e755198
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ namespace Raylib {

virtual void setPixelPosition(Vector2 position) = 0;

virtual void setPosition(const Vector2 &position) = 0;

virtual void setColor(Raylib::Color color) = 0;

[[nodiscard]] virtual Raylib::Color getColor() const = 0;
Expand Down
5 changes: 5 additions & 0 deletions libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ namespace Raylib {
_pixelPosition = position;
}

void TextImpl::setPosition(const Vector2 &position)
{
_position = position;
}

void TextImpl::setColor(Raylib::Color color)
{
_color = color;
Expand Down
2 changes: 2 additions & 0 deletions libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ namespace Raylib {

void setPixelPosition(Vector2 position) override;

void setPosition(const Vector2 &position) override;

void setColor(Raylib::Color color) override;

[[nodiscard]] Raylib::Color getColor() const override;
Expand Down

0 comments on commit e755198

Please sign in to comment.