#include <DataLoader.h>
List of all members.
Public Member Functions |
| DataLoader () |
void | Reset () |
void | UseFileSystem (bool use=true) |
void | UseVideo (Video *v) |
void | EnableMedia (bool enable=true) |
int | EnableDatafile (const char *name) |
int | DisableDatafile (const char *name) |
void | SetDataPath (const char *path) |
const char * | GetDataPath () const |
bool | IsFileSystemEnabled () const |
bool | IsMediaLoadEnabled () const |
bool | FindFile (const char *fname) |
int | ListFiles (const char *filter, List< Text > &list, bool recurse=false) |
int | ListArchiveFiles (const char *archive, const char *filter, List< Text > &list) |
int | LoadBuffer (const char *name, BYTE *&buf, bool null_terminate=false, bool optional=false) |
int | LoadBitmap (const char *name, Bitmap &bmp, int type=0, bool optional=false) |
int | CacheBitmap (const char *name, Bitmap *&bmp, int type=0, bool optional=false) |
int | LoadTexture (const char *name, Bitmap *&bmp, int type=0, bool preload_cache=false, bool optional=false) |
int | LoadSound (const char *fname, Sound *&snd, DWORD flags=0, bool optional=false) |
int | LoadStream (const char *fname, Sound *&snd, bool optional=false) |
void | ReleaseBuffer (BYTE *&buf) |
int | fread (void *buffer, size_t size, size_t count, BYTE *&stream) |
Detailed Description
Definition at line 26 of file DataLoader.h.
Member Enumeration Documentation
- Enumerator:
DATAFILE_OK |
|
DATAFILE_INVALID |
|
DATAFILE_NOTEXIST |
|
Definition at line 31 of file DataLoader.h.
Constructor & Destructor Documentation
DataLoader::DataLoader |
( |
| ) |
|
Member Function Documentation
int DataLoader::CacheBitmap |
( |
const char * |
name, |
|
|
Bitmap *& |
bmp, |
|
|
int |
type = 0 , |
|
|
bool |
optional = false |
|
) |
| |
void DataLoader::Close |
( |
| ) |
|
|
static |
int DataLoader::DisableDatafile |
( |
const char * |
name | ) |
|
int DataLoader::EnableDatafile |
( |
const char * |
name | ) |
|
void DataLoader::EnableMedia |
( |
bool |
enable = true | ) |
|
bool DataLoader::FindFile |
( |
const char * |
fname | ) |
|
int DataLoader::fread |
( |
void * |
buffer, |
|
|
size_t |
size, |
|
|
size_t |
count, |
|
|
BYTE *& |
stream |
|
) |
| |
const char* DataLoader::GetDataPath |
( |
| ) |
const |
|
inline |
void DataLoader::Initialize |
( |
| ) |
|
|
static |
bool DataLoader::IsFileSystemEnabled |
( |
| ) |
const |
|
inline |
bool DataLoader::IsMediaLoadEnabled |
( |
| ) |
const |
|
inline |
int DataLoader::ListArchiveFiles |
( |
const char * |
archive, |
|
|
const char * |
filter, |
|
|
List< Text > & |
list |
|
) |
| |
int DataLoader::ListFiles |
( |
const char * |
filter, |
|
|
List< Text > & |
list, |
|
|
bool |
recurse = false |
|
) |
| |
int DataLoader::LoadBitmap |
( |
const char * |
name, |
|
|
Bitmap & |
bmp, |
|
|
int |
type = 0 , |
|
|
bool |
optional = false |
|
) |
| |
int DataLoader::LoadBuffer |
( |
const char * |
name, |
|
|
BYTE *& |
buf, |
|
|
bool |
null_terminate = false , |
|
|
bool |
optional = false |
|
) |
| |
int DataLoader::LoadSound |
( |
const char * |
fname, |
|
|
Sound *& |
snd, |
|
|
DWORD |
flags = 0 , |
|
|
bool |
optional = false |
|
) |
| |
int DataLoader::LoadStream |
( |
const char * |
fname, |
|
|
Sound *& |
snd, |
|
|
bool |
optional = false |
|
) |
| |
int DataLoader::LoadTexture |
( |
const char * |
name, |
|
|
Bitmap *& |
bmp, |
|
|
int |
type = 0 , |
|
|
bool |
preload_cache = false , |
|
|
bool |
optional = false |
|
) |
| |
void DataLoader::ReleaseBuffer |
( |
BYTE *& |
buf | ) |
|
void DataLoader::Reset |
( |
| ) |
|
void DataLoader::SetDataPath |
( |
const char * |
path | ) |
|
static const char* DataLoader::TYPENAME |
( |
| ) |
|
|
inlinestatic |
void DataLoader::UseFileSystem |
( |
bool |
use = true | ) |
|
void DataLoader::UseVideo |
( |
Video * |
v | ) |
|
The documentation for this class was generated from the following files: