|
Renderd7-nightly
v0.7.0
|
#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) |
| C2D_Image | Get () |
| Get The Image. More... | |
Public Attributes | |
| C2D_Image | img |
| \img this is the C2D_Image | |
| bool | loadet = false |
| \loadet whether the image is loadet or not | |
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 |
| scaleX | x scale from 0.0 to 1.0 |
| scaleY | y scale from 0.0 to 1.0 |
|
inline |
Get The Image.