Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_customdata_types.h
| Show All 26 Lines | |||||
| #define __DNA_CUSTOMDATA_TYPES_H__ | #define __DNA_CUSTOMDATA_TYPES_H__ | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| #include "DNA_defs.h" | #include "DNA_defs.h" | ||||
| /** descriptor and storage for a custom data layer */ | /** Descriptor and storage for a custom data layer. */ | ||||
| typedef struct CustomDataLayer { | typedef struct CustomDataLayer { | ||||
| /** Type of data in layer. */ | /** Type of data in layer. */ | ||||
| int type; | int type; | ||||
| /** In editmode, offset of layer in block. */ | /** In editmode, offset of layer in block. */ | ||||
| int offset; | int offset; | ||||
| /** General purpose flag. */ | /** General purpose flag. */ | ||||
| int flag; | int flag; | ||||
| /** Number of the active layer of this type. */ | /** Number of the active layer of this type. */ | ||||
| Show All 14 Lines | |||||
| #define MAX_CUSTOMDATA_LAYER_NAME 64 | #define MAX_CUSTOMDATA_LAYER_NAME 64 | ||||
| typedef struct CustomDataExternal { | typedef struct CustomDataExternal { | ||||
| /** FILE_MAX. */ | /** FILE_MAX. */ | ||||
| char filename[1024]; | char filename[1024]; | ||||
| } CustomDataExternal; | } CustomDataExternal; | ||||
| /** structure which stores custom element data associated with mesh elements | /** | ||||
| * Structure which stores custom element data associated with mesh elements | |||||
| * (vertices, edges or faces). The custom data is organized into a series of | * (vertices, edges or faces). The custom data is organized into a series of | ||||
| * layers, each with a data type (e.g. MTFace, MDeformVert, etc.). */ | * layers, each with a data type (e.g. MTFace, MDeformVert, etc.). | ||||
| */ | |||||
| typedef struct CustomData { | typedef struct CustomData { | ||||
| /** CustomDataLayers, ordered by type. */ | /** CustomDataLayers, ordered by type. */ | ||||
| CustomDataLayer *layers; | CustomDataLayer *layers; | ||||
| /** | /** | ||||
| * runtime only! - maps types to indices of first layer of that type, | * runtime only! - maps types to indices of first layer of that type, | ||||
| * MUST be >= CD_NUMTYPES, but we cant use a define here. | * MUST be >= CD_NUMTYPES, but we cant use a define here. | ||||
| * Correct size is ensured in CustomData_update_typemap assert(). | * Correct size is ensured in CustomData_update_typemap assert(). | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines | |||||