Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_node.h
| Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | typedef struct bNodeSocketTemplate { | ||||
| char identifier[64]; /* generated from name */ | char identifier[64]; /* generated from name */ | ||||
| } bNodeSocketTemplate; | } bNodeSocketTemplate; | ||||
| /* Use `void *` for callbacks that require C++. This is rather ugly, but works well for now. This | /* Use `void *` for callbacks that require C++. This is rather ugly, but works well for now. This | ||||
| * would not be necessary if we would use bNodeSocketType and bNodeType only in C++ code. | * would not be necessary if we would use bNodeSocketType and bNodeType only in C++ code. | ||||
| * However, achieving this requires quite a few changes currently. */ | * However, achieving this requires quite a few changes currently. */ | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| namespace blender { | namespace blender { | ||||
| class CPPType; | |||||
| namespace nodes { | namespace nodes { | ||||
| class NodeMultiFunctionBuilder; | class NodeMultiFunctionBuilder; | ||||
| class GeoNodeExecParams; | class GeoNodeExecParams; | ||||
| class NodeDeclarationBuilder; | class NodeDeclarationBuilder; | ||||
| class GatherLinkSearchOpParams; | class GatherLinkSearchOpParams; | ||||
| } // namespace nodes | } // namespace nodes | ||||
| namespace fn { | namespace fn { | ||||
| class CPPType; | |||||
| class MFDataType; | class MFDataType; | ||||
| } // namespace fn | } // namespace fn | ||||
| } // namespace blender | } // namespace blender | ||||
| using CPPTypeHandle = blender::fn::CPPType; | using CPPTypeHandle = blender::CPPType; | ||||
| using NodeMultiFunctionBuildFunction = void (*)(blender::nodes::NodeMultiFunctionBuilder &builder); | using NodeMultiFunctionBuildFunction = void (*)(blender::nodes::NodeMultiFunctionBuilder &builder); | ||||
| using NodeGeometryExecFunction = void (*)(blender::nodes::GeoNodeExecParams params); | using NodeGeometryExecFunction = void (*)(blender::nodes::GeoNodeExecParams params); | ||||
| using NodeDeclareFunction = void (*)(blender::nodes::NodeDeclarationBuilder &builder); | using NodeDeclareFunction = void (*)(blender::nodes::NodeDeclarationBuilder &builder); | ||||
| using SocketGetCPPValueFunction = void (*)(const struct bNodeSocket &socket, void *r_value); | using SocketGetCPPValueFunction = void (*)(const struct bNodeSocket &socket, void *r_value); | ||||
| using SocketGetGeometryNodesCPPValueFunction = void (*)(const struct bNodeSocket &socket, | using SocketGetGeometryNodesCPPValueFunction = void (*)(const struct bNodeSocket &socket, | ||||
| void *r_value); | void *r_value); | ||||
| /* Adds socket link operations that are specific to this node type. */ | /* Adds socket link operations that are specific to this node type. */ | ||||
| ▲ Show 20 Lines • Show All 1,417 Lines • Show Last 20 Lines | |||||