Remove Unused Stuff
This commit is contained in:
@ -94,6 +94,7 @@ class Theme {
|
||||
void UndoAll();
|
||||
void TextBy(RD7Color bg);
|
||||
RD7Color AutoText(RD7Color bg);
|
||||
void ClearHistory() { changes.clear(); }
|
||||
|
||||
std::vector<unsigned int> &GetTableRef() { return clr_tab; }
|
||||
// For Smart Pointer
|
||||
|
@ -30,10 +30,11 @@ namespace RenderD7 {
|
||||
class Image {
|
||||
public:
|
||||
Image();
|
||||
~Image();
|
||||
~Image() = default;
|
||||
RD7_SMART_CTOR(Image)
|
||||
void Load(const std::string& path);
|
||||
void From_NIMG(const nimg& image);
|
||||
void Delete();
|
||||
|
||||
C2D_Image Get();
|
||||
C2D_Image& GetRef();
|
||||
@ -42,8 +43,6 @@ class Image {
|
||||
bool Loadet();
|
||||
|
||||
private:
|
||||
void safe_del();
|
||||
bool ld = false;
|
||||
C2D_Image img;
|
||||
};
|
||||
} // namespace RenderD7
|
@ -22,6 +22,7 @@
|
||||
#include <citro3d.h>
|
||||
|
||||
#include <renderd7/smart_ctor.hpp>
|
||||
#include <renderd7/Image.hpp>
|
||||
#include <string>
|
||||
|
||||
namespace RenderD7 {
|
||||
@ -41,6 +42,9 @@ class Sheet {
|
||||
Result Load(const std::string& path);
|
||||
/// @brief Unload the Sheet
|
||||
void Free();
|
||||
Image::Ref GetImage(int idx);
|
||||
C2D_SpriteSheet Get() { return this->spritesheet; }
|
||||
private:
|
||||
/// \param spritesheet The Sheet
|
||||
C2D_SpriteSheet spritesheet;
|
||||
};
|
||||
|
@ -158,18 +158,6 @@ int GetFps();
|
||||
/// @param e To
|
||||
/// @return Random Int
|
||||
int GetRandomInt(int b, int e);
|
||||
/// @brief DrawMetrikOvl (YOUR OWN RISK)
|
||||
void DrawMetrikOvl();
|
||||
/// @brief Draw Image from RenderD7 Sheet
|
||||
/// @param sheet Spritesheet
|
||||
/// @param index Image index Value
|
||||
/// @param x Pos X
|
||||
/// @param y Pos Y
|
||||
/// @param scaleX Scale on X-Axis
|
||||
/// @param scaleY Scale on Y-Axis
|
||||
/// @return success ?
|
||||
bool DrawImageFromSheet(RenderD7::Sheet *sheet, size_t index, float x, float y,
|
||||
float scaleX = 1.0, float scaleY = 1.0);
|
||||
/// @brief Fade In
|
||||
/// @param duration Duration in Frames
|
||||
void FadeIn();
|
||||
|
Reference in New Issue
Block a user