Added a setter to ImageComponent for mForceLoad.

This commit is contained in:
Leon Styhre 2021-10-23 17:36:13 +02:00
parent 89aefab54c
commit edc11e6255

View file

@ -30,6 +30,8 @@ public:
// Use an already existing texture. // Use an already existing texture.
void setImage(const std::shared_ptr<TextureResource>& texture, bool resizeTexture = true); void setImage(const std::shared_ptr<TextureResource>& texture, bool resizeTexture = true);
void setForceLoad(bool status) { mForceLoad = status; }
void onSizeChanged() override { updateVertices(); } void onSizeChanged() override { updateVertices(); }
// Resize the image to fit this size. If one axis is zero, scale that axis to maintain // Resize the image to fit this size. If one axis is zero, scale that axis to maintain