Blender V2.61 - r43446
|
Go to the source code of this file.
Defines | |
#define | CDF_TYPE_IMAGE 0 |
#define | CDF_TYPE_MESH 1 |
#define | CDF_LAYER_NAME_MAX 64 |
Typedefs | |
typedef struct CDataFile | CDataFile |
typedef struct CDataFileLayer | CDataFileLayer |
Functions | |
CDataFile * | cdf_create (int type) |
void | cdf_free (CDataFile *cdf) |
int | cdf_read_open (CDataFile *cdf, const char *filename) |
int | cdf_read_layer (CDataFile *cdf, CDataFileLayer *blay) |
int | cdf_read_data (CDataFile *cdf, unsigned int size, void *data) |
void | cdf_read_close (CDataFile *cdf) |
int | cdf_write_open (CDataFile *cdf, const char *filename) |
int | cdf_write_layer (CDataFile *cdf, CDataFileLayer *blay) |
int | cdf_write_data (CDataFile *cdf, unsigned int size, void *data) |
void | cdf_write_close (CDataFile *cdf) |
void | cdf_remove (const char *filename) |
CDataFileLayer * | cdf_layer_find (CDataFile *cdf, int type, const char *name) |
CDataFileLayer * | cdf_layer_add (CDataFile *cdf, int type, const char *name, size_t datasize) |
Definition in file BKE_customdata_file.h.
#define CDF_LAYER_NAME_MAX 64 |
Definition at line 31 of file BKE_customdata_file.h.
Referenced by cdf_layer_add().
#define CDF_TYPE_IMAGE 0 |
Definition at line 28 of file BKE_customdata_file.h.
Referenced by cdf_read_header(), cdf_write_header(), and cdf_write_open().
#define CDF_TYPE_MESH 1 |
Definition at line 29 of file BKE_customdata_file.h.
Referenced by cdf_read_header(), cdf_write_header(), cdf_write_open(), CustomData_external_read(), and CustomData_external_write().
Definition at line 33 of file BKE_customdata_file.h.
typedef struct CDataFileLayer CDataFileLayer |
Definition at line 34 of file BKE_customdata_file.h.
CDataFile* cdf_create | ( | int | type | ) |
Definition at line 120 of file customdata_file.c.
References MEM_callocN(), and CDataFile::type.
Referenced by CustomData_external_read(), and CustomData_external_write().
void cdf_free | ( | CDataFile * | cdf | ) |
Definition at line 129 of file customdata_file.c.
References cdf_read_close(), cdf_write_close(), CDataFile::layer, and MEM_freeN().
Referenced by CustomData_external_read(), and CustomData_external_write().
CDataFileLayer* cdf_layer_add | ( | CDataFile * | cdf, |
int | type, | ||
const char * | name, | ||
size_t | datasize | ||
) |
Definition at line 430 of file customdata_file.c.
References BLI_strncpy(), CDF_DATA_FLOAT, CDF_LAYER_NAME_MAX, CDataFileLayer::datasize, CDataFileLayer::datatype, CDataFile::layer, MEM_callocN(), CDataFileLayer::name, CDataFileLayer::structbytes, CDataFile::totlayer, and CDataFileLayer::type.
Referenced by CustomData_external_write().
CDataFileLayer* cdf_layer_find | ( | CDataFile * | cdf, |
int | type, | ||
const char * | name | ||
) |
Definition at line 415 of file customdata_file.c.
References CDataFile::layer, CDataFileLayer::name, NULL, CDataFile::totlayer, and CDataFileLayer::type.
Referenced by CustomData_external_read(), and CustomData_external_write().
void cdf_read_close | ( | CDataFile * | cdf | ) |
Definition at line 336 of file customdata_file.c.
References NULL, and CDataFile::readf.
Referenced by cdf_free(), cdf_read_open(), and CustomData_external_read().
int cdf_read_data | ( | CDataFile * | cdf, |
unsigned int | size, | ||
void * | data | ||
) |
Definition at line 316 of file customdata_file.c.
References data, CDataFile::readf, SWITCH_INT, and CDataFile::switchendian.
Referenced by layerRead_mdisps().
int cdf_read_layer | ( | CDataFile * | cdf, |
CDataFileLayer * | blay | ||
) |
Definition at line 299 of file customdata_file.c.
References CDataFile::dataoffset, CDataFileLayer::datasize, CDataFile::layer, CDataFile::readf, and CDataFile::totlayer.
Referenced by CustomData_external_read().
int cdf_read_open | ( | CDataFile * | cdf, |
const char * | filename | ||
) |
Definition at line 276 of file customdata_file.c.
References cdf_read_close(), cdf_read_header(), CDataFile::header, CDataFile::readf, CDataFileHeader::type, and CDataFile::type.
Referenced by CustomData_external_read().
void cdf_remove | ( | const char * | filename | ) |
Definition at line 408 of file customdata_file.c.
References BLI_delete().
Referenced by CustomData_external_remove().
void cdf_write_close | ( | CDataFile * | cdf | ) |
Definition at line 400 of file customdata_file.c.
References NULL, and CDataFile::writef.
Referenced by cdf_free(), and CustomData_external_write().
int cdf_write_data | ( | CDataFile * | cdf, |
unsigned int | size, | ||
void * | data | ||
) |
Definition at line 391 of file customdata_file.c.
References CDataFile::writef.
Referenced by layerWrite_mdisps().
int cdf_write_layer | ( | CDataFile * | cdf, |
CDataFileLayer * | blay | ||
) |
Referenced by CustomData_external_write().
int cdf_write_open | ( | CDataFile * | cdf, |
const char * | filename | ||
) |
Definition at line 344 of file customdata_file.c.
References CDataFile::btype, cdf_endian(), CDF_SUBVERSION, CDF_TILE_SIZE, CDF_TYPE_IMAGE, CDF_TYPE_MESH, CDF_VERSION, cdf_write_header(), CDataFileHeader::endian, CDataFile::header, CDataFileHeader::ID, CDataFile::image, CDataFile::mesh, CDataFileHeader::structbytes, CDataFileImageHeader::structbytes, CDataFileMeshHeader::structbytes, CDataFileHeader::subversion, CDataFileImageHeader::tile_size, CDataFile::totlayer, CDataFileHeader::totlayer, CDataFileHeader::type, CDataFile::type, CDataFileHeader::version, and CDataFile::writef.
Referenced by CustomData_external_write().