Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_node_types.h
| Show First 20 Lines • Show All 403 Lines • ▼ Show 20 Lines | |||||
| /* A preview for the data in this node can be displayed in the spreadsheet editor. */ | /* A preview for the data in this node can be displayed in the spreadsheet editor. */ | ||||
| #define __NODE_ACTIVE_PREVIEW (1 << 18) /* deprecated */ | #define __NODE_ACTIVE_PREVIEW (1 << 18) /* deprecated */ | ||||
| /* node->update */ | /* node->update */ | ||||
| /* XXX NODE_UPDATE is a generic update flag. More fine-grained updates | /* XXX NODE_UPDATE is a generic update flag. More fine-grained updates | ||||
| * might be used in the future, but currently all work the same way. | * might be used in the future, but currently all work the same way. | ||||
| */ | */ | ||||
| #define NODE_UPDATE 0xFFFF /* generic update flag (includes all others) */ | #define NODE_UPDATE 0xFFFF /* generic update flag (includes all others) */ | ||||
| #define NODE_UPDATE_ID 1 /* associated id data block has changed */ | #define NODE_UPDATE_ID 1 /* associated id data block has changed */ | ||||
JacquesLucke: Various unrelated changes. | |||||
| #define NODE_UPDATE_OPERATOR 2 /* node update triggered from update operator */ | #define NODE_UPDATE_OPERATOR 2 /* node update triggered from update operator */ | ||||
| /* Unique hash key for identifying node instances | /* Unique hash key for identifying node instances | ||||
| * Defined as a struct because DNA does not support other typedefs. | * Defined as a struct because DNA does not support other typedefs. | ||||
| */ | */ | ||||
| typedef struct bNodeInstanceKey { | typedef struct bNodeInstanceKey { | ||||
| unsigned int value; | unsigned int value; | ||||
| } bNodeInstanceKey; | } bNodeInstanceKey; | ||||
| ▲ Show 20 Lines • Show All 1,180 Lines • ▼ Show 20 Lines | typedef struct NodeGeometryImageTexture { | ||||
| int extension; | int extension; | ||||
| } NodeGeometryImageTexture; | } NodeGeometryImageTexture; | ||||
| typedef struct NodeGeometryViewer { | typedef struct NodeGeometryViewer { | ||||
| /* CustomDataType. */ | /* CustomDataType. */ | ||||
| int8_t data_type; | int8_t data_type; | ||||
| } NodeGeometryViewer; | } NodeGeometryViewer; | ||||
| typedef struct NodeFunctionCompare { | |||||
| /* CustomDataType. */ | |||||
| int8_t operation; | |||||
| int8_t data_type; | |||||
| int8_t mode; | |||||
| char _pad[1]; | |||||
HooglyBooglyUnsubmitted Done Inline ActionsAdd comments for the types of the other enums. HooglyBoogly: Add comments for the types of the other enums. | |||||
| } NodeFunctionCompare; | |||||
| /* script node mode */ | /* script node mode */ | ||||
| #define NODE_SCRIPT_INTERNAL 0 | #define NODE_SCRIPT_INTERNAL 0 | ||||
| #define NODE_SCRIPT_EXTERNAL 1 | #define NODE_SCRIPT_EXTERNAL 1 | ||||
| /* script node flag */ | /* script node flag */ | ||||
| #define NODE_SCRIPT_AUTO_UPDATE 1 | #define NODE_SCRIPT_AUTO_UPDATE 1 | ||||
| /* IES node mode. */ | /* IES node mode. */ | ||||
| ▲ Show 20 Lines • Show All 264 Lines • ▼ Show 20 Lines | |||||
| /* Boolean math node operations. */ | /* Boolean math node operations. */ | ||||
| enum { | enum { | ||||
| NODE_BOOLEAN_MATH_AND = 0, | NODE_BOOLEAN_MATH_AND = 0, | ||||
| NODE_BOOLEAN_MATH_OR = 1, | NODE_BOOLEAN_MATH_OR = 1, | ||||
| NODE_BOOLEAN_MATH_NOT = 2, | NODE_BOOLEAN_MATH_NOT = 2, | ||||
| }; | }; | ||||
| /* Float compare node operations. */ | /* Float compare node operations. */ | ||||
| typedef enum FloatCompareOperation { | typedef enum NodeCompareMode { | ||||
| NODE_FLOAT_COMPARE_LESS_THAN = 0, | NODE_COMPARE_MODE_ELEMENT = 0, | ||||
| NODE_FLOAT_COMPARE_LESS_EQUAL = 1, | NODE_COMPARE_MODE_LENGTH = 1, | ||||
| NODE_FLOAT_COMPARE_GREATER_THAN = 2, | NODE_COMPARE_MODE_AVERAGE = 2, | ||||
| NODE_FLOAT_COMPARE_GREATER_EQUAL = 3, | NODE_COMPARE_MODE_DOT_PRODUCT = 3, | ||||
| NODE_FLOAT_COMPARE_EQUAL = 4, | NODE_COMPARE_MODE_DIRECTION = 4 | ||||
| NODE_FLOAT_COMPARE_NOT_EQUAL = 5, | /* Mode:Element-wise, Length, Average, Dot Product, Direction (with angle threshold) */ | ||||
HooglyBooglyUnsubmitted Done Inline ActionsMaybe this comment should be removed? HooglyBoogly: Maybe this comment should be removed? | |||||
| } FloatCompareOperation; | } NodeCompareMode; | ||||
| typedef enum NodeCompareOperation { | |||||
| NODE_COMPARE_LESS_THAN = 0, | |||||
| NODE_COMPARE_LESS_EQUAL = 1, | |||||
| NODE_COMPARE_GREATER_THAN = 2, | |||||
| NODE_COMPARE_GREATER_EQUAL = 3, | |||||
| NODE_COMPARE_EQUAL = 4, | |||||
| NODE_COMPARE_NOT_EQUAL = 5, | |||||
| NODE_COMPARE_COLOR_BRIGHTER = 6, | |||||
| NODE_COMPARE_COLOR_DARKER = 7, | |||||
| } NodeCompareOperation; | |||||
| /* Float to Int node operations. */ | /* Float to Int node operations. */ | ||||
| typedef enum FloatToIntRoundingMode { | typedef enum FloatToIntRoundingMode { | ||||
| FN_NODE_FLOAT_TO_INT_ROUND = 0, | FN_NODE_FLOAT_TO_INT_ROUND = 0, | ||||
| FN_NODE_FLOAT_TO_INT_FLOOR = 1, | FN_NODE_FLOAT_TO_INT_FLOOR = 1, | ||||
| FN_NODE_FLOAT_TO_INT_CEIL = 2, | FN_NODE_FLOAT_TO_INT_CEIL = 2, | ||||
| FN_NODE_FLOAT_TO_INT_TRUNCATE = 3, | FN_NODE_FLOAT_TO_INT_TRUNCATE = 3, | ||||
| } FloatToIntRoundingMode; | } FloatToIntRoundingMode; | ||||
| ▲ Show 20 Lines • Show All 373 Lines • Show Last 20 Lines | |||||
Various unrelated changes.