xcubtxtr.h File Reference

#include "globals.h"

Go to the source code of this file.

Data Structures

struct  CUBE_TXTRANIM
struct  CUBE_TEXTURES
struct  CUBES_DATA

Defines

#define XCUTX_FILE_BADDATA   1
#define XCUTX_CANT_OPEN   2
#define XCUTX_MALLOC_ERR   3
#define XCUTX_INTERNAL   4
#define SIZEOF_DK_CUBE_REC   18
#define SIZEOF_DK_CUBE_HEADER   4
#define TEXTURE_SIZE_X   32
#define TEXTURE_SIZE_Y   32
#define TEXTURE_COUNT_X   8
#define TEXTURE_COUNT_Y   68

Functions

DLLIMPORT short alloc_cubedata (struct CUBES_DATA *cubes, long count)
DLLIMPORT short free_cubedata (struct CUBES_DATA *cubes)
DLLIMPORT short load_cubedata (struct CUBES_DATA *cubes, const char *fname)
DLLIMPORT short write_cubedata (struct CUBES_DATA *cubes, const char *fname)
DLLIMPORT short switch_cubedata_entries (struct CUBES_DATA *cubes, unsigned long idx1, unsigned long idx2)
DLLIMPORT short load_textureanim (struct CUBES_DATA *cubes, const char *fname)
DLLIMPORT short load_texture (unsigned char **texture, const char *fname)


Define Documentation

#define SIZEOF_DK_CUBE_HEADER   4

Definition at line 34 of file xcubtxtr.h.

Referenced by load_cubedata().

#define SIZEOF_DK_CUBE_REC   18

Definition at line 33 of file xcubtxtr.h.

Referenced by load_cubedata().

#define TEXTURE_COUNT_X   8

#define TEXTURE_COUNT_Y   68

#define TEXTURE_SIZE_X   32

#define TEXTURE_SIZE_Y   32

#define XCUTX_CANT_OPEN   2

Definition at line 29 of file xcubtxtr.h.

Referenced by write_cubedata().

#define XCUTX_FILE_BADDATA   1

Definition at line 28 of file xcubtxtr.h.

Referenced by load_cubedata(), load_texture(), and load_textureanim().

#define XCUTX_INTERNAL   4

Definition at line 31 of file xcubtxtr.h.

Referenced by switch_cubedata_entries().

#define XCUTX_MALLOC_ERR   3

Definition at line 30 of file xcubtxtr.h.

Referenced by alloc_cubedata(), load_cubedata(), and load_texture().


Function Documentation

DLLIMPORT short alloc_cubedata ( struct CUBES_DATA cubes,
long  count 
)

Definition at line 28 of file xcubtxtr.c.

Referenced by load_cubedata().

DLLIMPORT short free_cubedata ( struct CUBES_DATA cubes  ) 

Definition at line 40 of file xcubtxtr.c.

DLLIMPORT short load_cubedata ( struct CUBES_DATA cubes,
const char *  fname 
)

Definition at line 48 of file xcubtxtr.c.

Referenced by load_draw_data().

DLLIMPORT short load_texture ( unsigned char **  texture,
const char *  fname 
)

Definition at line 171 of file xcubtxtr.c.

Referenced by change_draw_data_texture().

DLLIMPORT short load_textureanim ( struct CUBES_DATA cubes,
const char *  fname 
)

Definition at line 139 of file xcubtxtr.c.

Referenced by load_draw_data().

DLLIMPORT short switch_cubedata_entries ( struct CUBES_DATA cubes,
unsigned long  idx1,
unsigned long  idx2 
)

Definition at line 128 of file xcubtxtr.c.

DLLIMPORT short write_cubedata ( struct CUBES_DATA cubes,
const char *  fname 
)

Definition at line 102 of file xcubtxtr.c.


Generated on Tue Sep 2 18:51:51 2008 for libAdikted by  doxygen 1.5.6