From e304bdf00f44a042ce51a586f07e18b28c91accd Mon Sep 17 00:00:00 2001 From: Tobi Date: Sun, 25 Jul 2021 11:05:06 +0200 Subject: [PATCH] Update renderd7.hpp --- renderd7.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/renderd7.hpp b/renderd7.hpp index 1b42cc9..d8ed7ba 100644 --- a/renderd7.hpp +++ b/renderd7.hpp @@ -59,12 +59,19 @@ namespace RenderD7 // The Spritesheet C2D_SpriteSheet spritesheet; }; - + /// Image Class class Image { public: + /// Load Image from Png + /// path: path to png file void LoadPng(const std::string path); + /// Load the Image from buffer + /// buffer: the frame buffer void LoadPFromBuffer(const std::vector &buffer); + /// Draw the Image directly + /// x: The x position + /// y: the y position bool Draw(float x, float y, float scaleX = 1.0f, float scaleY = 1.0f); C2D_Image Get(){return this->img;} C2D_Image img;