Update renderd7.hpp

This commit is contained in:
tobid7 2021-07-25 12:37:58 +02:00 committed by GitHub
parent 2327fcb284
commit a64f16e371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,8 +70,8 @@ namespace RenderD7
/// buffer: the frame buffer /// buffer: the frame buffer
void LoadPFromBuffer(const std::vector<u8> &buffer); void LoadPFromBuffer(const std::vector<u8> &buffer);
/// Draw the Image directly /// Draw the Image directly
/// x: The x position /// \param x The x position
/// y: the y position /// \param y the y position
bool Draw(float x, float y, float scaleX = 1.0f, float scaleY = 1.0f); bool Draw(float x, float y, float scaleX = 1.0f, float scaleY = 1.0f);
C2D_Image Get(){return this->img;} C2D_Image Get(){return this->img;}
C2D_Image img; C2D_Image img;
@ -81,6 +81,7 @@ namespace RenderD7
class Sprite class Sprite
{ {
public: public:
/// \brief Construct Sprite
Sprite(); Sprite();
~Sprite(); ~Sprite();
void FromSheet(RenderD7::Sheet *sheet, size_t index); void FromSheet(RenderD7::Sheet *sheet, size_t index);