Resolution independent 2D graphics engine
qr::qrdd_file_handler

Class Description

Public Methods

void dump_sprite (sprite *sprite_d, const char *filename)
sprite * load_sprite (scene_manager *scene_man, const char *filename, bool convert=true)

Details

void qr::qrdd_file_handler::dump_sprite ( sprite * sprite_d,
const char * filename
) [static]

Description

Dump the frames from a sprite to a QRDD file

Paramiters

sprite_d Scene node to be dumped.
filename Path and name of the QRDD file.
sprite * qr::qrdd_file_handler::load_sprite ( scene_manager * scene_man,
const char * filename,
bool convert
) [static]

Description

Create a sprite from a QRDD file.

Retunes

A sprite containing the frames in the QRDD.

Paramiters

scene_man Pointer to scene manager.
filename Path and name of the QRDD file.
convert Optional parameter, by default a sprite loaded form a QRDD is automatically converted for use, setting this to false stops this happening.