Blender  V2.93
BKE_customdata_file.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 #pragma once
18 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #define CDF_TYPE_IMAGE 0
28 #define CDF_TYPE_MESH 1
29 
30 #define CDF_LAYER_NAME_MAX 64
31 
32 typedef struct CDataFile CDataFile;
33 typedef struct CDataFileLayer CDataFileLayer;
34 
35 /* Create/Free */
36 
38 void cdf_free(CDataFile *cdf);
39 
40 /* File read/write/remove */
41 
42 bool cdf_read_open(CDataFile *cdf, const char *filename);
43 bool cdf_read_layer(CDataFile *cdf, CDataFileLayer *blay);
44 bool cdf_read_data(CDataFile *cdf, unsigned int size, void *data);
45 void cdf_read_close(CDataFile *cdf);
46 
47 bool cdf_write_open(CDataFile *cdf, const char *filename);
49 bool cdf_write_data(CDataFile *cdf, unsigned int size, void *data);
50 void cdf_write_close(CDataFile *cdf);
51 
52 void cdf_remove(const char *filename);
53 
54 /* Layers */
55 
56 CDataFileLayer *cdf_layer_find(CDataFile *cdf, int type, const char *name);
57 CDataFileLayer *cdf_layer_add(CDataFile *cdf, int type, const char *name, size_t datasize);
58 
59 #ifdef __cplusplus
60 }
61 #endif
bool cdf_read_open(CDataFile *cdf, const char *filename)
bool cdf_read_data(CDataFile *cdf, unsigned int size, void *data)
void cdf_remove(const char *filename)
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_layer(CDataFile *cdf, CDataFileLayer *blay)
bool cdf_write_data(CDataFile *cdf, unsigned int size, void *data)
_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
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition: btDbvt.cpp:52
char name[CDF_LAYER_NAME_MAX]