14 #ifndef ROCKET_FILE_INTERFACE_H
15 #define ROCKET_FILE_INTERFACE_H
19 #include <Rocket/Core/FileInterface.h>
32 Rocket::Core::FileHandle Open(
const Rocket::Core::String& path);
33 void Close(Rocket::Core::FileHandle file);
35 size_t Read(
void* buffer,
size_t size, Rocket::Core::FileHandle file);
36 bool Seek(Rocket::Core::FileHandle file,
long offset,
int origin);
37 size_t Tell(Rocket::Core::FileHandle file);
39 size_t Length(Rocket::Core::FileHandle file);
42 struct VirtualFileHandle {
44 std::istream *_stream;
Implementation of FileInterface to allow libRocket to read files from the virtual file system.
RocketFileInterface(VirtualFileSystem *vfs=nullptr)
Constructs a RocketFileInterface for the given VFS, or the default if NULL is given.
A hierarchy of directories and files that appears to be one continuous file system,...
The abstract base class for a file or directory within the VirtualFileSystem.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.