Blender
V3.3
|
#include <float.h>
#include <stdlib.h>
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_texture_types.h"
#include "BLI_math.h"
#include "BKE_customdata.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "rna_internal.h"
#include "WM_api.h"
#include "WM_types.h"
Go to the source code of this file.
Functions | |
static void | rna_def_material_display (StructRNA *srna) |
static void | rna_def_material_greasepencil (BlenderRNA *brna) |
static void | rna_def_material_lineart (BlenderRNA *brna) |
void | RNA_def_material (BlenderRNA *brna) |
static void | rna_def_texture_slots (BlenderRNA *brna, PropertyRNA *cprop, const char *structname, const char *structname_slots) |
void | rna_def_mtex_common (BlenderRNA *brna, StructRNA *srna, const char *begin, const char *activeget, const char *activeset, const char *activeeditable, const char *structname, const char *structname_slots, const char *update, const char *update_index) |
static void | rna_def_tex_slot (BlenderRNA *brna) |
void | rna_def_texpaint_slots (BlenderRNA *brna, StructRNA *srna) |
Variables | |
const EnumPropertyItem | rna_enum_ramp_blend_items [] |
void RNA_def_material | ( | BlenderRNA * | brna | ) |
Definition at line 781 of file rna_material.c.
References MA_BL_CULL_BACKFACE, MA_BL_HIDE_BACKFACE, MA_BL_SS_REFRACTION, MA_BL_TRANSLUCENCY, MA_BM_BLEND, MA_BM_CLIP, MA_BM_HASHED, MA_BM_SOLID, MA_BS_CLIP, MA_BS_HASHED, MA_BS_NONE, MA_BS_SOLID, MA_CLOTH, MA_CUBE, MA_FLAT, MA_FLUID, MA_HAIR, MA_PREVIEW_WORLD, MA_SHADERBALL, MA_SPHERE, NC_OBJECT, NULL, PROP_ANIMATABLE, PROP_BOOLEAN, PROP_CONTEXT_UPDATE, PROP_DISTANCE, PROP_EDITABLE, PROP_ENUM, PROP_FACTOR, PROP_FLOAT, PROP_INT, PROP_NONE, PROP_POINTER, PROP_PTR_NO_OWNERSHIP, PROP_UNSIGNED, PROPOVERRIDE_OVERRIDABLE_LIBRARY, RNA_api_material(), rna_def_animdata_common(), rna_def_material_display(), rna_def_material_greasepencil(), rna_def_material_lineart(), RNA_def_property(), RNA_def_property_boolean_funcs(), RNA_def_property_boolean_negative_sdna(), RNA_def_property_boolean_sdna(), RNA_def_property_clear_flag(), RNA_def_property_enum_items(), RNA_def_property_enum_sdna(), RNA_def_property_flag(), RNA_def_property_float_sdna(), RNA_def_property_int_sdna(), RNA_def_property_override_flag(), RNA_def_property_pointer_sdna(), RNA_def_property_range(), RNA_def_property_ui_text(), RNA_def_property_update(), RNA_def_struct(), RNA_def_struct_ui_icon(), RNA_def_struct_ui_text(), and rna_def_texpaint_slots().
Definition at line 411 of file rna_material.c.
References NULL, PROP_COLOR, PROP_FACTOR, PROP_FLOAT, PROP_INT, PROP_NONE, PROPOVERRIDE_OVERRIDABLE_LIBRARY, RNA_def_property(), RNA_def_property_array(), RNA_def_property_float_sdna(), RNA_def_property_int_sdna(), RNA_def_property_override_flag(), RNA_def_property_range(), RNA_def_property_ui_text(), and RNA_def_property_update().
Referenced by RNA_def_material().
|
static |
Definition at line 465 of file rna_material.c.
References DEG2RADF, GP_MATERIAL_DISABLE_STENCIL, GP_MATERIAL_FILL_SHOW, GP_MATERIAL_FILL_STYLE_GRADIENT, GP_MATERIAL_FILL_STYLE_SOLID, GP_MATERIAL_FILL_STYLE_TEXTURE, GP_MATERIAL_FLIP_FILL, GP_MATERIAL_FOLLOW_FIXED, GP_MATERIAL_FOLLOW_OBJ, GP_MATERIAL_FOLLOW_PATH, GP_MATERIAL_GRADIENT_LINEAR, GP_MATERIAL_GRADIENT_RADIAL, GP_MATERIAL_HIDE, GP_MATERIAL_HIDE_ONIONSKIN, GP_MATERIAL_IS_FILL_HOLDOUT, GP_MATERIAL_IS_STROKE_HOLDOUT, GP_MATERIAL_LOCKED, GP_MATERIAL_MODE_DOT, GP_MATERIAL_MODE_LINE, GP_MATERIAL_MODE_SQUARE, GP_MATERIAL_STROKE_SHOW, GP_MATERIAL_STROKE_STYLE_SOLID, GP_MATERIAL_STROKE_STYLE_TEXTURE, GP_MATERIAL_TEX_CLAMP, NC_GPENCIL, ND_SHADING, NULL, PROP_ANGLE, PROP_BOOLEAN, PROP_COLOR, PROP_COORDS, PROP_EDITABLE, PROP_ENUM, PROP_FACTOR, PROP_FLOAT, PROP_INT, PROP_NONE, PROP_POINTER, PROP_UNSIGNED, PROPOVERRIDE_OVERRIDABLE_LIBRARY, RNA_def_property(), RNA_def_property_array(), RNA_def_property_boolean_funcs(), RNA_def_property_boolean_sdna(), RNA_def_property_clear_flag(), RNA_def_property_enum_bitflag_sdna(), RNA_def_property_enum_items(), RNA_def_property_flag(), RNA_def_property_float_default(), RNA_def_property_float_sdna(), RNA_def_property_int_sdna(), RNA_def_property_override_flag(), RNA_def_property_pointer_funcs(), RNA_def_property_pointer_sdna(), RNA_def_property_range(), RNA_def_property_ui_icon(), RNA_def_property_ui_range(), RNA_def_property_ui_text(), RNA_def_property_update(), RNA_def_struct(), RNA_def_struct_path_func(), RNA_def_struct_sdna(), and RNA_def_struct_ui_text().
Referenced by RNA_def_material().
|
static |
Definition at line 731 of file rna_material.c.
References LRT_MATERIAL_CUSTOM_INTERSECTION_PRIORITY, LRT_MATERIAL_MASK_ENABLED, NC_GPENCIL, ND_SHADING, NULL, PROP_BOOLEAN, PROP_INT, PROP_NONE, RNA_def_property(), RNA_def_property_array(), RNA_def_property_boolean_default(), RNA_def_property_boolean_sdna(), RNA_def_property_int_default(), RNA_def_property_range(), RNA_def_property_ui_range(), RNA_def_property_ui_text(), RNA_def_property_update(), RNA_def_struct(), RNA_def_struct_path_func(), RNA_def_struct_sdna(), and RNA_def_struct_ui_text().
Referenced by RNA_def_material().
void rna_def_mtex_common | ( | BlenderRNA * | brna, |
StructRNA * | srna, | ||
const char * | begin, | ||
const char * | activeget, | ||
const char * | activeset, | ||
const char * | activeeditable, | ||
const char * | structname, | ||
const char * | structname_slots, | ||
const char * | update, | ||
const char * | update_index | ||
) |
Definition at line 995 of file rna_material.c.
References MAX_MTEX, NC_MATERIAL, ND_SHADING_LINKS, NULL, PROP_COLLECTION, PROP_EDITABLE, PROP_INT, PROP_NONE, PROP_POINTER, PROP_UNSIGNED, RNA_def_property(), RNA_def_property_collection_funcs(), RNA_def_property_editable_func(), RNA_def_property_flag(), RNA_def_property_int_sdna(), RNA_def_property_pointer_funcs(), RNA_def_property_range(), RNA_def_property_struct_type(), RNA_def_property_ui_text(), RNA_def_property_update(), rna_def_texture_slots(), update(), and blender::ed::asset::index::update_index().
Referenced by rna_def_linestyle(), and rna_def_particle_settings().
|
static |
Definition at line 1041 of file rna_material.c.
References NC_GEOM, ND_DATA, NULL, PROP_BOOLEAN, PROP_EDITABLE, PROP_INT, PROP_NONE, PROP_STRING, RNA_def_property(), RNA_def_property_boolean_sdna(), RNA_def_property_clear_flag(), RNA_def_property_int_funcs(), RNA_def_property_string_funcs(), RNA_def_property_string_maxlength(), RNA_def_property_string_sdna(), RNA_def_property_ui_text(), RNA_def_property_update(), RNA_def_struct(), RNA_def_struct_name_property(), and RNA_def_struct_ui_text().
Referenced by rna_def_texpaint_slots().
void rna_def_texpaint_slots | ( | BlenderRNA * | brna, |
StructRNA * | srna | ||
) |
Definition at line 1078 of file rna_material.c.
References NC_MATERIAL, ND_SHADING_LINKS, NULL, PROP_COLLECTION, PROP_CONTEXT_UPDATE, PROP_INT, PROP_NONE, PROP_UNSIGNED, RNA_def_property(), RNA_def_property_collection_funcs(), RNA_def_property_collection_sdna(), RNA_def_property_flag(), RNA_def_property_range(), RNA_def_property_struct_type(), RNA_def_property_ui_text(), RNA_def_property_update(), and rna_def_tex_slot().
Referenced by RNA_def_material().
|
static |
Definition at line 957 of file rna_material.c.
References FUNC_NO_SELF, FUNC_USE_CONTEXT, FUNC_USE_REPORTS, FUNC_USE_SELF_ID, NULL, PARM_REQUIRED, RNA_def_function(), RNA_def_function_flag(), RNA_def_function_return(), RNA_def_int(), RNA_def_parameter_flags(), RNA_def_pointer(), RNA_def_property_srna(), RNA_def_struct(), RNA_def_struct_sdna(), and RNA_def_struct_ui_text().
Referenced by rna_def_mtex_common().
const EnumPropertyItem rna_enum_ramp_blend_items[] |
Definition at line 26 of file rna_material.c.
Referenced by def_mix_rgb(), node_blend_label(), and rna_def_modifier_type_common().