![]() |
SLProject
4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
Assimp file system handler backed by SLFileStorage. More...
#include <SLAssimpIOSystem.h>
Inherits Assimp::IOSystem.
Public Member Functions | |
| bool | Exists (const char *pFile) const override |
| Returns true if pFile can be opened through SLFileStorage. More... | |
| char | getOsSeparator () const override |
| Returns the path separator, always '/' for SLProject paths. More... | |
| Assimp::IOStream * | Open (const char *pFile, const char *pMode) override |
| Opens pFile through SLFileStorage and wraps it in an SLAssimpIOStream. More... | |
| void | Close (Assimp::IOStream *pFile) override |
| Closes the stream and deletes the adapter created by Open. More... | |
Assimp file system handler backed by SLFileStorage.
Installed on the Assimp importer with SetIOHandler in SLAssimpImporter::load, so that every file Assimp opens is resolved through SLFileStorage rather than the C runtime. Paths are looked up with the IOK_model file kind.
Definition at line 60 of file SLAssimpIOSystem.h.
|
override |
Closes the stream and deletes the adapter created by Open.
Definition at line 88 of file SLAssimpIOSystem.cpp.
|
override |
Returns true if pFile can be opened through SLFileStorage.
Definition at line 62 of file SLAssimpIOSystem.cpp.
|
override |
Returns the path separator, always '/' for SLProject paths.
Definition at line 67 of file SLAssimpIOSystem.cpp.
|
override |
Opens pFile through SLFileStorage and wraps it in an SLAssimpIOStream.
| pFile | Path of the file to open |
| pMode | Assimp mode string ("rb", "r", "rt", "wb", "w", "wt"). Only the first character is inspected, because an SLIOStream is always binary. |
Definition at line 72 of file SLAssimpIOSystem.cpp.