Inherits Assimp::IOStream.
|
| | SLAssimpIOStream (SLIOStream *stream) |
| |
| size_t | Read (void *pvBuffer, size_t pSize, size_t pCount) override |
| | Reads pCount records of pSize bytes into pvBuffer, returns records read. More...
|
| |
| size_t | Write (const void *pvBuffer, size_t pSize, size_t pCount) override |
| | Writes pCount records of pSize bytes from pvBuffer, returns bytes written. More...
|
| |
| aiReturn | Seek (size_t pOffset, aiOrigin pOrigin) override |
| | Moves the read position to pOffset relative to pOrigin. More...
|
| |
| size_t | Tell () const override |
| | Returns the current read position in bytes. More...
|
| |
| size_t | FileSize () const override |
| | Returns the total size of the stream in bytes. More...
|
| |
| void | Flush () override |
| | Flushes the wrapped stream. More...
|
| |
| SLIOStream * | stream () |
| | Returns the wrapped SLProject stream. More...
|
| |
Adapts a single SLIOStream to the stream interface Assimp expects.
Assimp reads model files through its own Assimp::IOStream abstraction. This class forwards each of those calls to an SLIOStream, so that Assimp reads through the same storage layer as the rest of SLProject. That matters on Emscripten in particular, where an asset is not a file on disk but data fetched over the network or held in browser storage.
Definition at line 25 of file SLAssimpIOSystem.h.