Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_attribute.h
| Show All 17 Lines | |||||
| struct CustomData; | struct CustomData; | ||||
| struct CustomDataLayer; | struct CustomDataLayer; | ||||
| struct ID; | struct ID; | ||||
| struct ReportList; | struct ReportList; | ||||
| /** #Attribute.domain */ | /** #Attribute.domain */ | ||||
| typedef enum eAttrDomain { | typedef enum eAttrDomain { | ||||
| ATTR_DOMAIN_AUTO = -1, /* Use for nodes to choose automatically based on other data. */ | |||||
| ATTR_DOMAIN_POINT = 0, /* Mesh, Curve or Point Cloud Point */ | ATTR_DOMAIN_POINT = 0, /* Mesh, Curve or Point Cloud Point */ | ||||
| ATTR_DOMAIN_EDGE = 1, /* Mesh Edge */ | ATTR_DOMAIN_EDGE = 1, /* Mesh Edge */ | ||||
| ATTR_DOMAIN_FACE = 2, /* Mesh Face */ | ATTR_DOMAIN_FACE = 2, /* Mesh Face */ | ||||
| ATTR_DOMAIN_CORNER = 3, /* Mesh Corner */ | ATTR_DOMAIN_CORNER = 3, /* Mesh Corner */ | ||||
| ATTR_DOMAIN_CURVE = 4, /* A single curve in a larger curve data-block */ | ATTR_DOMAIN_CURVE = 4, /* A single curve in a larger curve data-block */ | ||||
| ATTR_DOMAIN_INSTANCE = 5, /* Instance */ | ATTR_DOMAIN_INSTANCE = 5, /* Instance */ | ||||
| ATTR_DOMAIN_AUTO = -1, /* Use for nodes to choose automatically based on other data. */ | |||||
| ATTR_DOMAIN_TEXTURE = -2, /* Use for texture nodes to evaluate in a continuous texture space. */ | |||||
| } eAttrDomain; | } eAttrDomain; | ||||
| #define ATTR_DOMAIN_NUM 6 | #define ATTR_DOMAIN_NUM 6 | ||||
| typedef enum eAttrDomainMask { | typedef enum eAttrDomainMask { | ||||
| ATTR_DOMAIN_MASK_POINT = (1 << 0), | ATTR_DOMAIN_MASK_POINT = (1 << 0), | ||||
| ATTR_DOMAIN_MASK_EDGE = (1 << 1), | ATTR_DOMAIN_MASK_EDGE = (1 << 1), | ||||
| ATTR_DOMAIN_MASK_FACE = (1 << 2), | ATTR_DOMAIN_MASK_FACE = (1 << 2), | ||||
| ATTR_DOMAIN_MASK_CORNER = (1 << 3), | ATTR_DOMAIN_MASK_CORNER = (1 << 3), | ||||
| Show All 32 Lines | struct CustomDataLayer *BKE_id_attribute_find(const struct ID *id, | ||||
| eAttrDomain domain); | eAttrDomain domain); | ||||
| struct CustomDataLayer *BKE_id_attribute_search(struct ID *id, | struct CustomDataLayer *BKE_id_attribute_search(struct ID *id, | ||||
| const char *name, | const char *name, | ||||
| eCustomDataMask type, | eCustomDataMask type, | ||||
| eAttrDomainMask domain_mask); | eAttrDomainMask domain_mask); | ||||
| eAttrDomain BKE_id_attribute_domain(const struct ID *id, const struct CustomDataLayer *layer); | eAttrDomain BKE_id_attribute_domain(const struct ID *id, const struct CustomDataLayer *layer); | ||||
| int BKE_id_attribute_data_length(struct ID *id, struct CustomDataLayer *layer); | int BKE_id_attribute_data_length(const struct ID *id, struct CustomDataLayer *layer); | ||||
| int BKE_id_attribute_domain_length(const struct ID *id, eAttrDomain domain); | |||||
| bool BKE_id_attribute_required(const struct ID *id, const char *name); | bool BKE_id_attribute_required(const struct ID *id, const char *name); | ||||
| bool BKE_id_attribute_rename(struct ID *id, | bool BKE_id_attribute_rename(struct ID *id, | ||||
| const char *old_name, | const char *old_name, | ||||
| const char *new_name, | const char *new_name, | ||||
| struct ReportList *reports); | struct ReportList *reports); | ||||
| int BKE_id_attributes_length(const struct ID *id, | int BKE_id_attributes_length(const struct ID *id, | ||||
| eAttrDomainMask domain_mask, | eAttrDomainMask domain_mask, | ||||
| ▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines | |||||