33 explicit ObjSprite(
fge::Texture const& texture, fge::Vector2f
const& position = fge::Vector2f());
35 fge::RectInt
const& rectangle,
36 fge::Vector2f
const& position = fge::Vector2f());
40 void setTexture(
fge::Texture const& texture,
bool resetRect =
false);
41 void setTextureRect(fge::RectInt
const& rectangle);
42 void flipHorizontal();
48 fge::RectInt
const& getTextureRect()
const;
54 void save(nlohmann::json& jsonObject)
override;
55 void load(nlohmann::json& jsonObject, std::filesystem::path
const& filePath)
override;
66 void updatePositions();
67 void updateTexCoords();
71 fge::RectInt g_textureRect;
This class is a wrapper for the texture manager to allow easy manipulation.
Definition C_texture.hpp:36