26 uiItemR(layout,
ptr,
"rounding_mode", 0,
"", ICON_NONE);
46 "Round", [](
float a) {
return (
int)round(
a); }, exec_preset};
48 "Floor", [](
float a) {
return (
int)
floor(
a); }, exec_preset};
50 "Ceiling", [](
float a) {
return (
int)
ceil(
a); }, exec_preset};
52 "Truncate", [](
float a) {
return (
int)trunc(
a); }, exec_preset};
#define NODE_CLASS_CONVERTER
void nodeRegisterType(struct bNodeType *ntype)
#define FN_NODE_FLOAT_TO_INT
#define BLI_assert_unreachable()
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
@ FN_NODE_FLOAT_TO_INT_TRUNCATE
@ FN_NODE_FLOAT_TO_INT_CEIL
@ FN_NODE_FLOAT_TO_INT_ROUND
@ FN_NODE_FLOAT_TO_INT_FLOOR
void uiItemR(uiLayout *layout, struct PointerRNA *ptr, const char *propname, int flag, const char *name, int icon)
void set_matching_fn(const MultiFunction *fn)
ccl_device_inline float3 ceil(const float3 &a)
static void fn_node_float_to_int_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void fn_node_float_to_int_declare(NodeDeclarationBuilder &b)
static const fn::MultiFunction * get_multi_function(bNode &bnode)
static void node_float_to_int_label(const bNodeTree *UNUSED(ntree), const bNode *node, char *label, int maxlen)
static void fn_node_float_to_int_build_multi_function(NodeMultiFunctionBuilder &builder)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_fn_float_to_int()
void fn_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
bool RNA_enum_name(const EnumPropertyItem *item, const int value, const char **r_name)
const EnumPropertyItem rna_enum_node_float_to_int_items[]
void(* labelfunc)(const struct bNodeTree *ntree, const struct bNode *node, char *label, int maxlen)
void(* draw_buttons)(struct uiLayout *, struct bContext *C, struct PointerRNA *ptr)
NodeMultiFunctionBuildFunction build_multi_function
NodeDeclareFunction declare