#include <renderd7.hpp>
Public Member Functions | |
void | LoadPng (const std::string path) |
void | LoadPFromBuffer (const std::vector< u8 > &buffer) |
bool | Draw (float x, float y, float scaleX=1.0f, float scaleY=1.0f) |
Image Class.
void RenderD7::Image::LoadPng | ( | const std::string | path | ) |
Load Image from Png path: path to png file
void RenderD7::Image::LoadPFromBuffer | ( | const std::vector< u8 > & | buffer | ) |
Load the Image from buffer buffer: the frame buffer
bool RenderD7::Image::Draw | ( | float | x, |
float | y, | ||
float | scaleX = 1.0f , |
||
float | scaleY = 1.0f |
||
) |
Draw the Image directly
x | The x position |
y | the y position |