Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

anim.cpp File Reference

Detailed Description

Make resource manager class and make load* functions its members

Definition in file anim.cpp.

#include "common/endian.h"
#include "common/stream.h"
#include "cine/cine.h"
#include "cine/anim.h"
#include "cine/gfx.h"
#include "cine/pal.h"
#include "cine/part.h"
#include "cine/various.h"

Go to the source code of this file.


namespace  Cine


struct  Cine::AnimHeader2Struct


void Cine::convert4BBP (byte *dest, const byte *source, int16 width, int16 height)
 Decode 4bpp sprite.
void Cine::convert8BBP (byte *dest, const byte *source, int16 width, int16 height)
 Decode 16 color image with palette.
void Cine::convert8BBP2 (byte *dest, byte *source, int16 width, int16 height)
 Decode 8bit image.
void Cine::convertMask (byte *dest, const byte *source, int16 width, int16 height)
 Decode 1bpp mask.
int Cine::emptyAnimSpace (int start=0)
 Find next empty space animDataTable.
void Cine::freeAnimDataRange (byte startIdx, byte numIdx)
 Clear part of animDataTable.
void Cine::freeAnimDataTable ()
 Clear whole animDataTable.
void Cine::generateMask (const byte *sprite, byte *mask, uint16 size, byte transparency)
 Generate mask for image.
static byte Cine::getAnimTransparentColor (const char *animName)
 Find transparent color index for image.
int Cine::loadAni (const char *resourceName, int16 idx)
 Load animation.
void Cine::loadAnimHeader (AnimHeaderStruct &animHeader, Common::MemoryReadStream readS)
 Read image header.
int Cine::loadMsk (const char *resourceName, int16 idx)
 Load 1bpp mask.
int Cine::loadResource (const char *resourceName, int16 idx)
 Load a resource into animDataTable.
int Cine::loadSeq (const char *resourceName, int16 idx)
 Load SEQ data into animDataTable.
int Cine::loadSet (const char *resourceName, int16 idx)
 Load image set.
int Cine::loadSpl (const char *resourceName, int16 idx)
 Load SPL data into animDataTable.


Common::Array< AnimData > Cine::animDataTable
static const AnimDataEntry Cine::transparencyData []

Generated by  Doxygen 1.6.0   Back to index