Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Classes | Static Public Member Functions | Friends | List of all members
LxS::System::AssetLoader Class Reference

class grouping methods for accessing textures and application assets. This is very much OS-specific More...

#include <assetloader.hpp>

Collaboration diagram for LxS::System::AssetLoader:
Collaboration graph

Classes

struct  Texture
 

Static Public Member Functions

static char * LoadAsset (const char *name, off_t *size)
 Loads an asset as set of characters.
 
static const char * Scanf (const char *a, const char *fmt,...)
 "scan" part of asset. works as scanf with exception, that parameter a is pointer "where to read" returned is position of progressed pointer ("where reading was finished" - typically after newline or at \0)
 
static char * Fgets (char *s, int size, char *a)
 "gets" part of asset. works as fgets with exception, that parameter a is pointer "where to read" returned is position of progressed pointer ("where reading was finished" - typically after newline or at \0)
 
static void StoreAsset (const char *path, off_t size, const char *buffer)
 
static char * LoadAssetExt (const char *name, off_t *size)
 

Friends

class ::LxS::CoreGraphics::TextureSet
 

Detailed Description

class grouping methods for accessing textures and application assets. This is very much OS-specific

Member Function Documentation

char * AssetLoader::LoadAssetExt ( const char *  name,
off_t *  size 
)
static

just like LoadAsset but handles pathname prefixes FILE: - local data in local data directory (dotdir) NET: networked repository no prefix: asset directory

void AssetLoader::StoreAsset ( const char *  path,
off_t  size,
const char *  buffer 
)
static

path must be prefixed FILE: - local data in local data directory (dotdir) NET: networked repository


The documentation for this class was generated from the following files: