Atrinik Client  4.0
Data Structures | Typedefs | Functions
image.h File Reference

Go to the source code of this file.

Data Structures

struct  bmap
 
struct  bmap_hash
 

Typedefs

typedef struct bmap bmap_t
 
typedef struct bmap_hash bmap_hash_t
 

Functions

void image_init (void)
 
void image_deinit (void)
 
void image_bmaps_init (void)
 
void image_bmaps_deinit (void)
 
void finish_face_cmd (int facenum, uint32_t checksum, const char *face)
 
void image_request_face (int pnum)
 
int image_get_id (const char *name)
 

Detailed Description

Image related structures.

Definition in file image.h.

Typedef Documentation

typedef struct bmap_hash bmap_hash_t

Container structure for bmaps.

typedef struct bmap bmap_t

Structure for bmap data.

Function Documentation

void finish_face_cmd ( int  facenum,
uint32_t  checksum,
const char *  face 
)

Finish face command.

Parameters
pnumID of the face.
checksumFace checksum.
faceFace name.

Definition at line 228 of file image.c.

void image_bmaps_deinit ( void  )

Deinitialize the bmaps.

Definition at line 191 of file image.c.

void image_bmaps_init ( void  )

Read bmaps server file.

Definition at line 143 of file image.c.

int image_get_id ( const char *  name)

Find a face ID by name. Request the face by finding it, loading it or requesting it.

Parameters
nameFace name to find.
Returns
Face ID if found, -1 otherwise.

Definition at line 448 of file image.c.

void image_init ( void  )

Read bmaps from image packs, calculate checksums, etc.

Definition at line 62 of file image.c.

void image_request_face ( int  pnum)

We got a face - test if we have it loaded. If not, ask the server to send us face command.

Parameters
pnumFace ID.

Definition at line 402 of file image.c.