Blender  V3.3
Functions | Variables
rna_material.c File Reference
#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 []
 

Function Documentation

◆ RNA_def_material()

void RNA_def_material ( BlenderRNA brna)

◆ rna_def_material_display()

static void rna_def_material_display ( StructRNA srna)
static

◆ rna_def_material_greasepencil()

static void rna_def_material_greasepencil ( BlenderRNA brna)
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().

◆ rna_def_material_lineart()

static void rna_def_material_lineart ( BlenderRNA brna)
static

◆ rna_def_mtex_common()

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 
)

◆ rna_def_tex_slot()

static void rna_def_tex_slot ( BlenderRNA brna)
static

◆ rna_def_texpaint_slots()

void rna_def_texpaint_slots ( BlenderRNA brna,
StructRNA srna 
)

◆ rna_def_texture_slots()

static void rna_def_texture_slots ( BlenderRNA brna,
PropertyRNA cprop,
const char *  structname,
const char *  structname_slots 
)
static

Variable Documentation

◆ rna_enum_ramp_blend_items

const EnumPropertyItem rna_enum_ramp_blend_items[]
Initial value:
= {
{MA_RAMP_BLEND, "MIX", 0, "Mix", ""},
{MA_RAMP_DARK, "DARKEN", 0, "Darken", ""},
{MA_RAMP_MULT, "MULTIPLY", 0, "Multiply", ""},
{MA_RAMP_BURN, "BURN", 0, "Color Burn", ""},
{MA_RAMP_LIGHT, "LIGHTEN", 0, "Lighten", ""},
{MA_RAMP_SCREEN, "SCREEN", 0, "Screen", ""},
{MA_RAMP_DODGE, "DODGE", 0, "Color Dodge", ""},
{MA_RAMP_ADD, "ADD", 0, "Add", ""},
{MA_RAMP_OVERLAY, "OVERLAY", 0, "Overlay", ""},
{MA_RAMP_SOFT, "SOFT_LIGHT", 0, "Soft Light", ""},
{MA_RAMP_LINEAR, "LINEAR_LIGHT", 0, "Linear Light", ""},
{MA_RAMP_DIFF, "DIFFERENCE", 0, "Difference", ""},
{MA_RAMP_SUB, "SUBTRACT", 0, "Subtract", ""},
{MA_RAMP_DIV, "DIVIDE", 0, "Divide", ""},
{MA_RAMP_HUE, "HUE", 0, "Hue", ""},
{MA_RAMP_SAT, "SATURATION", 0, "Saturation", ""},
{MA_RAMP_COLOR, "COLOR", 0, "Color", ""},
{MA_RAMP_VAL, "VALUE", 0, "Value", ""},
{0, NULL, 0, NULL, NULL},
}
#define MA_RAMP_SUB
#define MA_RAMP_VAL
#define MA_RAMP_DIFF
#define MA_RAMP_DARK
#define MA_RAMP_BURN
#define MA_RAMP_LIGHT
#define MA_RAMP_SOFT
#define MA_RAMP_LINEAR
#define MA_RAMP_OVERLAY
#define MA_RAMP_MULT
#define MA_RAMP_SAT
#define MA_RAMP_DIV
#define MA_RAMP_DODGE
#define MA_RAMP_SCREEN
#define MA_RAMP_HUE
#define MA_RAMP_BLEND
#define MA_RAMP_ADD
#define MA_RAMP_COLOR
#define RNA_ENUM_ITEM_SEPR
Definition: RNA_types.h:483

Definition at line 26 of file rna_material.c.

Referenced by def_mix_rgb(), node_blend_label(), and rna_def_modifier_type_common().