added extra functions to Texture

This commit is contained in:
2026-02-02 07:41:16 +01:00
parent 236da3059f
commit 2f3fdf83ae
2 changed files with 174 additions and 0 deletions

View File

@@ -38,6 +38,10 @@ namespace TSE
byte* GetImagePtr() const;
void SetPixel(const Vector2& pos, const Color& c);
void GetPixel(const Vector2& pos, Color& c) const;
Texture CutOut(const Vector2& pos, Vector2& size) const;
Texture Upscale(const Vector2& size) const;
Texture Downscale(const Vector2& size) const;
void PasteIn(const Vector2& pos, Texture& t);
void SetPixelNoApply(const Vector2& pos, const Color& c);
void ToSprite(Sprite& s);
void SetChanels(const byte& ch);