Update renderd7.hpp
This commit is contained in:
parent
2327fcb284
commit
a64f16e371
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user