37 #define CDF_ENDIAN_LITTLE 0
38 #define CDF_ENDIAN_BIG 1
40 #define CDF_DATA_FLOAT 0
76 #define CDF_SUBVERSION 0
77 #define CDF_TILE_SIZE 64
137 FILE *f = cdf->
readf;
147 if (memcmp(header->
ID,
"BCDF",
sizeof(header->
ID)) != 0) {
170 if (fseek(f, offset, SEEK_SET) != 0) {
200 offset +=
mesh->structbytes;
204 if (fseek(f, offset, SEEK_SET) != 0) {
236 if (fseek(f, offset, SEEK_SET) != 0) {
317 if (&cdf->
layer[
a] == blay) {
324 return (fseek(cdf->
readf, offset, SEEK_SET) == 0);
449 cdf->
layer = newlayer;
#define CDF_LAYER_NAME_MAX
struct CDataFileLayer CDataFileLayer
BLI_INLINE void BLI_endian_switch_uint64(uint64_t *val) ATTR_NONNULL(1)
void BLI_endian_switch_float_array(float *val, const int size) ATTR_NONNULL(1)
BLI_INLINE void BLI_endian_switch_int32(int *val) ATTR_NONNULL(1)
File and directory operations.
int BLI_delete(const char *file, bool dir, bool recursive) ATTR_NONNULL()
FILE * BLI_fopen(const char *filename, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, const size_t maxncpy) ATTR_NONNULL()
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
Read Guarded memory(de)allocation.
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
struct CDataFileHeader CDataFileHeader
#define CDF_ENDIAN_LITTLE
static int cdf_endian(void)
static bool cdf_read_header(CDataFile *cdf)
bool cdf_read_open(CDataFile *cdf, const char *filename)
bool cdf_read_data(CDataFile *cdf, unsigned int size, void *data)
bool cdf_write_layer(CDataFile *UNUSED(cdf), CDataFileLayer *UNUSED(blay))
static bool cdf_write_header(CDataFile *cdf)
void cdf_remove(const char *filename)
struct CDataFileImageHeader CDataFileImageHeader
void cdf_read_close(CDataFile *cdf)
bool cdf_write_open(CDataFile *cdf, const char *filename)
CDataFile * cdf_create(int type)
void cdf_write_close(CDataFile *cdf)
void cdf_free(CDataFile *cdf)
bool cdf_read_layer(CDataFile *cdf, CDataFileLayer *blay)
CDataFileLayer * cdf_layer_add(CDataFile *cdf, int type, const char *name, size_t datasize)
CDataFileLayer * cdf_layer_find(CDataFile *cdf, int type, const char *name)
bool cdf_write_data(CDataFile *cdf, unsigned int size, void *data)
struct CDataFileMeshHeader CDataFileMeshHeader
void(* MEM_freeN)(void *vmemh)
void *(* MEM_calloc_arrayN)(size_t len, size_t size, const char *str)
void *(* MEM_callocN)(size_t len, const char *str)
unsigned __int64 uint64_t
char name[CDF_LAYER_NAME_MAX]
union CDataFile::@85 btype
CDataFileImageHeader image