Update Some files
This commit is contained in:
parent
ed0d9998ff
commit
6123bd3307
@ -8,9 +8,9 @@ namespace RenderD7::Lang
|
|||||||
/// Get the 3ds System Language
|
/// Get the 3ds System Language
|
||||||
std::string getSys();
|
std::string getSys();
|
||||||
/// Get a translated string
|
/// Get a translated string
|
||||||
/// key: The Key so the code can find your string
|
/// \param key The Key so the code can find your string
|
||||||
std::string get(const std::string &key);
|
std::string get(const std::string &key);
|
||||||
/// Load the lang file from dir structure en/app.json for sample
|
/// Load the lang file from dir structure en/app.json for sample
|
||||||
/// lang: the folder name en, fr, de ... . I prefer geSys()
|
/// \param lang the folder name en, fr, de ... . I prefer geSys()
|
||||||
void load(const std::string &lang);
|
void load(const std::string &lang);
|
||||||
} /// RenderD7::Lang
|
} /// RenderD7::Lang
|
||||||
|
2
log.hpp
2
log.hpp
@ -25,6 +25,6 @@ class Log
|
|||||||
/// \param fmt_str the formatted style
|
/// \param fmt_str the formatted style
|
||||||
std::string format(const std::string& fmt_str, ...);
|
std::string format(const std::string& fmt_str, ...);
|
||||||
private:
|
private:
|
||||||
/// param filename the name of the logfile
|
/// \param filename the name of the logfile
|
||||||
std::string filename;
|
std::string filename;
|
||||||
};
|
};
|
||||||
|
12
renderd7.hpp
12
renderd7.hpp
@ -65,11 +65,11 @@ namespace RenderD7
|
|||||||
// Deconstruct sheet
|
// Deconstruct sheet
|
||||||
~Sheet();
|
~Sheet();
|
||||||
/// Load a Sritesheet
|
/// Load a Sritesheet
|
||||||
/// path: Path to the Spritesheet (.t3x)
|
/// \param path Path to the Spritesheet (.t3x)
|
||||||
Result Load(const char *path);
|
Result Load(const char *path);
|
||||||
/// Unload the Spritesheet
|
/// Unload the Spritesheet
|
||||||
void Free();
|
void Free();
|
||||||
// The Spritesheet
|
/// The Spritesheet
|
||||||
C2D_SpriteSheet spritesheet;
|
C2D_SpriteSheet spritesheet;
|
||||||
};
|
};
|
||||||
/// Image Class
|
/// Image Class
|
||||||
@ -77,10 +77,10 @@ namespace RenderD7
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/// Load Image from Png
|
/// Load Image from Png
|
||||||
/// path: path to png file
|
/// \param path path to png file
|
||||||
void LoadPng(const std::string path);
|
void LoadPng(const std::string path);
|
||||||
/// Load the Image from buffer
|
/// Load the Image from buffer
|
||||||
/// buffer: the frame buffer
|
/// \param buffer the frame buffer
|
||||||
void LoadPFromBuffer(const std::vector<u8> &buffer);
|
void LoadPFromBuffer(const std::vector<u8> &buffer);
|
||||||
/// Draw the Image directly
|
/// Draw the Image directly
|
||||||
/// \param x The x position
|
/// \param x The x position
|
||||||
@ -91,9 +91,9 @@ namespace RenderD7
|
|||||||
/// \brief Get The Image
|
/// \brief Get The Image
|
||||||
/// \return C2D_Image
|
/// \return C2D_Image
|
||||||
C2D_Image Get(){return this->img;}
|
C2D_Image Get(){return this->img;}
|
||||||
/// \img this is the C2D_Image
|
/// \param img this is the C2D_Image
|
||||||
C2D_Image img;
|
C2D_Image img;
|
||||||
/// \loadet whether the image is loadet or not
|
/// \param loadet whether the image is loadet or not
|
||||||
bool loadet = false;
|
bool loadet = false;
|
||||||
};
|
};
|
||||||
/// Sprite Class
|
/// Sprite Class
|
||||||
|
Loading…
Reference in New Issue
Block a user