mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-16 13:25:57 +08:00
Add comment on tinygltf::ExpandFilePath()
This commit is contained in:
parent
fbbeb4d6a9
commit
3d939fd3ee
@ -1249,7 +1249,13 @@ struct FsCallbacks {
|
|||||||
|
|
||||||
bool FileExists(const std::string &abs_filename, void *);
|
bool FileExists(const std::string &abs_filename, void *);
|
||||||
|
|
||||||
std::string ExpandFilePath(const std::string &filepath, void *);
|
///
|
||||||
|
/// Expand file path(e.g. `~` to home directory on posix, `%APPDATA%` to `C:\Users\tinygltf\AppData`)
|
||||||
|
///
|
||||||
|
/// @param[in] filepath File path string. Assume UTF-8
|
||||||
|
/// @param[in] userdata User data. Set to `nullptr` if you don't need it.
|
||||||
|
///
|
||||||
|
std::string ExpandFilePath(const std::string &filepath, void *userdata);
|
||||||
|
|
||||||
bool ReadWholeFile(std::vector<unsigned char> *out, std::string *err,
|
bool ReadWholeFile(std::vector<unsigned char> *out, std::string *err,
|
||||||
const std::string &filepath, void *);
|
const std::string &filepath, void *);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user