Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nodetree.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 4,437 Lines • ▼ Show 20 Lines | static void def_cmp_alpha_over(StructRNA *srna) | ||||
| prop = RNA_def_property(srna, "premul", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "premul", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "x"); | RNA_def_property_float_sdna(prop, NULL, "x"); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_ui_text(prop, "Premul", "Mix Factor"); | RNA_def_property_ui_text(prop, "Premul", "Mix Factor"); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | ||||
| } | } | ||||
| static void def_cmp_hue_saturation(StructRNA *srna) | |||||
| { | |||||
| PropertyRNA *prop; | |||||
| RNA_def_struct_sdna_from(srna, "NodeHueSat", "storage"); | |||||
| prop = RNA_def_property(srna, "color_hue", PROP_FLOAT, PROP_NONE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "hue"); | |||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | |||||
| RNA_def_property_float_default(prop, 0.5f); | |||||
| RNA_def_property_ui_text(prop, "Hue", ""); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| prop = RNA_def_property(srna, "color_saturation", PROP_FLOAT, PROP_NONE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "sat"); | |||||
| RNA_def_property_range(prop, 0.0f, 2.0f); | |||||
| RNA_def_property_ui_text(prop, "Saturation", ""); | |||||
| RNA_def_property_float_default(prop, 1.0f); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| prop = RNA_def_property(srna, "color_value", PROP_FLOAT, PROP_NONE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "val"); | |||||
| RNA_def_property_range(prop, 0.0f, 2.0f); | |||||
| RNA_def_property_ui_text(prop, "Value", ""); | |||||
| RNA_def_property_float_default(prop, 1.0f); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| } | |||||
| static void def_cmp_blur(StructRNA *srna) | static void def_cmp_blur(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static EnumPropertyItem filter_type_items[] = { | static EnumPropertyItem filter_type_items[] = { | ||||
| {R_FILTER_BOX, "FLAT", 0, "Flat", ""}, | {R_FILTER_BOX, "FLAT", 0, "Flat", ""}, | ||||
| {R_FILTER_TENT, "TENT", 0, "Tent", ""}, | {R_FILTER_TENT, "TENT", 0, "Tent", ""}, | ||||
| {R_FILTER_QUAD, "QUAD", 0, "Quadratic", ""}, | {R_FILTER_QUAD, "QUAD", 0, "Quadratic", ""}, | ||||
| ▲ Show 20 Lines • Show All 3,940 Lines • Show Last 20 Lines | |||||