Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_node_types.h
| Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | typedef enum eNodeSocketFlag { | ||||
| SOCK_COLLAPSED = (1 << 6), | SOCK_COLLAPSED = (1 << 6), | ||||
| /** hide socket value, if it gets auto default */ | /** hide socket value, if it gets auto default */ | ||||
| SOCK_HIDE_VALUE = (1 << 7), | SOCK_HIDE_VALUE = (1 << 7), | ||||
| /** socket hidden automatically, to distinguish from manually hidden */ | /** socket hidden automatically, to distinguish from manually hidden */ | ||||
| SOCK_AUTO_HIDDEN__DEPRECATED = (1 << 8), | SOCK_AUTO_HIDDEN__DEPRECATED = (1 << 8), | ||||
| SOCK_NO_INTERNAL_LINK = (1 << 9), | SOCK_NO_INTERNAL_LINK = (1 << 9), | ||||
| /** Draw socket in a more compact form. */ | /** Draw socket in a more compact form. */ | ||||
| SOCK_COMPACT = (1 << 10), | SOCK_COMPACT = (1 << 10), | ||||
| /** Make the input socket accept multiple incoming links in the UI. */ | |||||
| SOCK_MULTI_INPUT = (1 << 11), | |||||
| } eNodeSocketFlag; | } eNodeSocketFlag; | ||||
| /* limit data in bNode to what we want to see saved? */ | /* limit data in bNode to what we want to see saved? */ | ||||
| typedef struct bNode { | typedef struct bNode { | ||||
| struct bNode *next, *prev, *new_node; | struct bNode *next, *prev, *new_node; | ||||
| /** User-defined properties. */ | /** User-defined properties. */ | ||||
| IDProperty *prop; | IDProperty *prop; | ||||
| ▲ Show 20 Lines • Show All 873 Lines • ▼ Show 20 Lines | typedef struct NodeAttributeCompare { | ||||
| /* GeometryNodeAttributeInputMode */ | /* GeometryNodeAttributeInputMode */ | ||||
| uint8_t input_type_a; | uint8_t input_type_a; | ||||
| uint8_t input_type_b; | uint8_t input_type_b; | ||||
| char _pad[5]; | char _pad[5]; | ||||
| } NodeAttributeCompare; | } NodeAttributeCompare; | ||||
| typedef struct NodeAttributeMath { | typedef struct NodeAttributeMath { | ||||
| /* e.g. NODE_MATH_ADD. */ | /* NodeMathOperation. */ | ||||
| uint8_t operation; | uint8_t operation; | ||||
| /* GeometryNodeAttributeInputMode */ | /* GeometryNodeAttributeInputMode */ | ||||
| uint8_t input_type_a; | uint8_t input_type_a; | ||||
| uint8_t input_type_b; | uint8_t input_type_b; | ||||
| uint8_t input_type_c; | |||||
| char _pad[5]; | char _pad[4]; | ||||
| } NodeAttributeMath; | } NodeAttributeMath; | ||||
| typedef struct NodeAttributeMix { | typedef struct NodeAttributeMix { | ||||
| /* e.g. MA_RAMP_BLEND. */ | /* e.g. MA_RAMP_BLEND. */ | ||||
| uint8_t blend_type; | uint8_t blend_type; | ||||
| /* GeometryNodeAttributeInputMode */ | /* GeometryNodeAttributeInputMode */ | ||||
| uint8_t input_type_factor; | uint8_t input_type_factor; | ||||
| ▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
| typedef struct NodeGeometryObjectInfo { | typedef struct NodeGeometryObjectInfo { | ||||
| /* GeometryNodeTransformSpace. */ | /* GeometryNodeTransformSpace. */ | ||||
| uint8_t transform_space; | uint8_t transform_space; | ||||
| char _pad[7]; | char _pad[7]; | ||||
| } NodeGeometryObjectInfo; | } NodeGeometryObjectInfo; | ||||
| typedef struct NodeGeometryPointInstance { | |||||
| /* GeometryNodePointInstanceType. */ | |||||
| uint8_t instance_type; | |||||
| /* GeometryNodePointInstanceFlag. */ | |||||
| uint8_t flag; | |||||
| char _pad[6]; | |||||
| } NodeGeometryPointInstance; | |||||
| typedef struct NodeGeometryPointsToVolume { | |||||
| /* GeometryNodePointsToVolumeResolutionMode */ | |||||
| uint8_t resolution_mode; | |||||
| /* GeometryNodeAttributeInputMode */ | |||||
| uint8_t input_type_radius; | |||||
| char _pad[6]; | |||||
| } NodeGeometryPointsToVolume; | |||||
| typedef struct NodeGeometryCollectionInfo { | |||||
| /* GeometryNodeTransformSpace. */ | |||||
| uint8_t transform_space; | |||||
| char _pad[7]; | |||||
| } NodeGeometryCollectionInfo; | |||||
| /* 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 179 Lines • ▼ Show 20 Lines | enum { | ||||
| NODE_VECTOR_ROTATE_TYPE_AXIS_Z = 3, | NODE_VECTOR_ROTATE_TYPE_AXIS_Z = 3, | ||||
| NODE_VECTOR_ROTATE_TYPE_EULER_XYZ = 4, | NODE_VECTOR_ROTATE_TYPE_EULER_XYZ = 4, | ||||
| }; | }; | ||||
| /* math node clamp */ | /* math node clamp */ | ||||
| #define SHD_MATH_CLAMP 1 | #define SHD_MATH_CLAMP 1 | ||||
| /* Math node operations. */ | /* Math node operations. */ | ||||
| enum { | typedef enum NodeMathOperation { | ||||
| NODE_MATH_ADD = 0, | NODE_MATH_ADD = 0, | ||||
| NODE_MATH_SUBTRACT = 1, | NODE_MATH_SUBTRACT = 1, | ||||
| NODE_MATH_MULTIPLY = 2, | NODE_MATH_MULTIPLY = 2, | ||||
| NODE_MATH_DIVIDE = 3, | NODE_MATH_DIVIDE = 3, | ||||
| NODE_MATH_SINE = 4, | NODE_MATH_SINE = 4, | ||||
| NODE_MATH_COSINE = 5, | NODE_MATH_COSINE = 5, | ||||
| NODE_MATH_TANGENT = 6, | NODE_MATH_TANGENT = 6, | ||||
| NODE_MATH_ARCSINE = 7, | NODE_MATH_ARCSINE = 7, | ||||
| Show All 24 Lines | typedef enum NodeMathOperation { | ||||
| NODE_MATH_TRUNC = 32, | NODE_MATH_TRUNC = 32, | ||||
| NODE_MATH_SNAP = 33, | NODE_MATH_SNAP = 33, | ||||
| NODE_MATH_WRAP = 34, | NODE_MATH_WRAP = 34, | ||||
| NODE_MATH_COMPARE = 35, | NODE_MATH_COMPARE = 35, | ||||
| NODE_MATH_MULTIPLY_ADD = 36, | NODE_MATH_MULTIPLY_ADD = 36, | ||||
| NODE_MATH_PINGPONG = 37, | NODE_MATH_PINGPONG = 37, | ||||
| NODE_MATH_SMOOTH_MIN = 38, | NODE_MATH_SMOOTH_MIN = 38, | ||||
| NODE_MATH_SMOOTH_MAX = 39, | NODE_MATH_SMOOTH_MAX = 39, | ||||
| }; | } NodeMathOperation; | ||||
| /* Vector Math node operations. */ | /* Vector Math node operations. */ | ||||
| typedef enum NodeVectorMathOperation { | typedef enum NodeVectorMathOperation { | ||||
| NODE_VECTOR_MATH_ADD = 0, | NODE_VECTOR_MATH_ADD = 0, | ||||
| NODE_VECTOR_MATH_SUBTRACT = 1, | NODE_VECTOR_MATH_SUBTRACT = 1, | ||||
| NODE_VECTOR_MATH_MULTIPLY = 2, | NODE_VECTOR_MATH_MULTIPLY = 2, | ||||
| NODE_VECTOR_MATH_DIVIDE = 3, | NODE_VECTOR_MATH_DIVIDE = 3, | ||||
| ▲ Show 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | typedef enum GeometryNodeTriangulateQuads { | ||||
| GEO_NODE_TRIANGULATE_QUAD_SHORTEDGE = 3, | GEO_NODE_TRIANGULATE_QUAD_SHORTEDGE = 3, | ||||
| } GeometryNodeTriangulateQuads; | } GeometryNodeTriangulateQuads; | ||||
| typedef enum GeometryNodePointInstanceType { | typedef enum GeometryNodePointInstanceType { | ||||
| GEO_NODE_POINT_INSTANCE_TYPE_OBJECT = 0, | GEO_NODE_POINT_INSTANCE_TYPE_OBJECT = 0, | ||||
| GEO_NODE_POINT_INSTANCE_TYPE_COLLECTION = 1, | GEO_NODE_POINT_INSTANCE_TYPE_COLLECTION = 1, | ||||
| } GeometryNodePointInstanceType; | } GeometryNodePointInstanceType; | ||||
| typedef enum GeometryNodePointInstanceFlag { | |||||
| GEO_NODE_POINT_INSTANCE_WHOLE_COLLECTION = (1 << 0), | |||||
| } GeometryNodePointInstanceFlag; | |||||
| typedef enum GeometryNodeAttributeInputMode { | typedef enum GeometryNodeAttributeInputMode { | ||||
| GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE = 0, | GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE = 0, | ||||
| GEO_NODE_ATTRIBUTE_INPUT_FLOAT = 1, | GEO_NODE_ATTRIBUTE_INPUT_FLOAT = 1, | ||||
| GEO_NODE_ATTRIBUTE_INPUT_VECTOR = 2, | GEO_NODE_ATTRIBUTE_INPUT_VECTOR = 2, | ||||
| GEO_NODE_ATTRIBUTE_INPUT_COLOR = 3, | GEO_NODE_ATTRIBUTE_INPUT_COLOR = 3, | ||||
| GEO_NODE_ATTRIBUTE_INPUT_BOOLEAN = 4, | GEO_NODE_ATTRIBUTE_INPUT_BOOLEAN = 4, | ||||
| } GeometryNodeAttributeInputMode; | } GeometryNodeAttributeInputMode; | ||||
| Show All 18 Lines | typedef enum GeometryNodeAlignRotationToVectorAxis { | ||||
| GEO_NODE_ALIGN_ROTATION_TO_VECTOR_AXIS_Z = 2, | GEO_NODE_ALIGN_ROTATION_TO_VECTOR_AXIS_Z = 2, | ||||
| } GeometryNodeAlignRotationToVectorAxis; | } GeometryNodeAlignRotationToVectorAxis; | ||||
| typedef enum GeometryNodeTransformSpace { | typedef enum GeometryNodeTransformSpace { | ||||
| GEO_NODE_TRANSFORM_SPACE_ORIGINAL = 0, | GEO_NODE_TRANSFORM_SPACE_ORIGINAL = 0, | ||||
| GEO_NODE_TRANSFORM_SPACE_RELATIVE = 1, | GEO_NODE_TRANSFORM_SPACE_RELATIVE = 1, | ||||
| } GeometryNodeTransformSpace; | } GeometryNodeTransformSpace; | ||||
| typedef enum GeometryNodePointsToVolumeResolutionMode { | |||||
| GEO_NODE_POINTS_TO_VOLUME_RESOLUTION_MODE_AMOUNT = 0, | |||||
| GEO_NODE_POINTS_TO_VOLUME_RESOLUTION_MODE_SIZE = 1, | |||||
| } GeometryNodePointsToVolumeResolutionMode; | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||