This commit is contained in:
skymz4 2022-04-23 13:58:48 +02:00 committed by GitHub
parent 5fb7ca78a9
commit 04741198e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -950,6 +950,11 @@ void RenderD7::Image::LoadPFromBuffer(const std::vector<u8> &buffer)
}
}
void RenderD7::Image::FromSheet(RenderD7::Sheet sheet, size_t index)
{
}
bool RenderD7::DrawImage(C2D_Image img, float x, float y, float scaleX, float scaleY)
{
return C2D_DrawImageAt(img, x, y, 0.5f, nullptr, scaleX, scaleY);

View File

@ -109,6 +109,8 @@ namespace RenderD7
/// \brief Get The Image
/// \return C2D_Image
C2D_Image Get(){return this->img;}
void FromSheet(RenderD7::Sheet sheet, size_t index);
/// \param img this is the C2D_Image
C2D_Image img;
/// \param loadet whether the image is loadet or not