Blender V2.61 - r43446
Functions | Variables

rna_material.c File Reference

#include <float.h>
#include <stdlib.h>
#include "RNA_define.h"
#include "rna_internal.h"
#include "DNA_material_types.h"
#include "DNA_texture_types.h"
#include "WM_api.h"
#include "WM_types.h"

Go to the source code of this file.

Functions

static void rna_def_material_mtex (BlenderRNA *brna)
static void rna_def_material_gamesettings (BlenderRNA *brna)
static void rna_def_material_colors (StructRNA *srna)
static void rna_def_material_diffuse (StructRNA *srna)
static void rna_def_material_raymirror (BlenderRNA *brna)
static void rna_def_material_raytra (BlenderRNA *brna)
static void rna_def_material_volume (BlenderRNA *brna)
static void rna_def_material_halo (BlenderRNA *brna)
static void rna_def_material_sss (BlenderRNA *brna)
static void rna_def_material_specularity (StructRNA *srna)
static void rna_def_material_strand (BlenderRNA *brna)
static void rna_def_material_physics (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)

Variables

static EnumPropertyItem prop_texture_coordinates_items []
EnumPropertyItem ramp_blend_items []

Detailed Description

Definition in file rna_material.c.


Function Documentation

void RNA_def_material ( BlenderRNA brna)

Definition at line 1656 of file rna_material.c.

References FLT_MAX, MA_APPROX_OCCLUSION, MA_CUBE, MA_CUBIC, MA_ENV, MA_FACETEXTURE, MA_FACETEXTURE_ALPHA, MA_FLAT, MA_FULL_OSA, MA_GROUP_NOLAY, MA_HAIR, MA_MONKEY, MA_NOMIST, MA_OBCOLOR, MA_ONLYCAST, MA_ONLYSHADOW, MA_RAYBIAS, MA_RAYTRANSP, MA_SHADBUF, MA_SHADOW, MA_SHADOW_TRA, MA_SHLESS, MA_SO_OLD, MA_SO_SHADED, MA_SO_SHADOW, MA_SPHERE, MA_SPHERE_A, MA_TANGENT_V, MA_TRACEBLE, MA_TRANSP, MA_TYPE_HALO, MA_TYPE_SURFACE, MA_TYPE_VOLUME, MA_TYPE_WIRE, MA_VERTEXCOL, MA_VERTEXCOLP, MA_ZINV, MA_ZTRANSP, NC_MATERIAL, NC_OBJECT, NULL, PROP_ANIMATABLE, PROP_BOOLEAN, PROP_EDITABLE, PROP_ENUM, PROP_FACTOR, PROP_FLOAT, PROP_INT, PROP_NEVER_NULL, PROP_NONE, PROP_POINTER, PROP_UNSIGNED, RNA_api_material(), rna_def_animdata_common(), rna_def_material_colors(), rna_def_material_diffuse(), rna_def_material_gamesettings(), rna_def_material_halo(), rna_def_material_mtex(), rna_def_material_physics(), rna_def_material_raymirror(), rna_def_material_raytra(), rna_def_material_specularity(), rna_def_material_sss(), rna_def_material_strand(), rna_def_material_volume(), rna_def_mtex_common(), RNA_def_property(), RNA_def_property_array(), RNA_def_property_boolean_negative_sdna(), RNA_def_property_boolean_sdna(), RNA_def_property_clear_flag(), RNA_def_property_enum_bitflag_sdna(), RNA_def_property_enum_funcs(), 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_pointer_funcs(), RNA_def_property_pointer_sdna(), RNA_def_property_range(), RNA_def_property_struct_type(), RNA_def_property_ui_range(), RNA_def_property_ui_text(), RNA_def_property_update(), RNA_def_struct(), RNA_def_struct_ui_icon(), and RNA_def_struct_ui_text().

static void rna_def_material_colors ( StructRNA srna) [static]
static void rna_def_material_diffuse ( StructRNA srna) [static]
static void rna_def_material_gamesettings ( BlenderRNA brna) [static]
static void rna_def_material_halo ( BlenderRNA brna) [static]
static void rna_def_material_mtex ( BlenderRNA brna) [static]
static void rna_def_material_physics ( BlenderRNA brna) [static]
static void rna_def_material_raymirror ( BlenderRNA brna) [static]
static void rna_def_material_raytra ( BlenderRNA brna) [static]
static void rna_def_material_specularity ( StructRNA srna) [static]
static void rna_def_material_sss ( BlenderRNA brna) [static]
static void rna_def_material_strand ( BlenderRNA brna) [static]
static void rna_def_material_volume ( BlenderRNA brna) [static]
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 
)
static void rna_def_texture_slots ( BlenderRNA brna,
PropertyRNA cprop,
const char *  structname,
const char *  structname_slots 
) [static]

Variable Documentation

Initial value:
 {
{TEXCO_GLOB, "GLOBAL", 0, "Global", "Use global coordinates for the texture coordinates"},
{TEXCO_OBJECT, "OBJECT", 0, "Object", "Use linked object's coordinates for texture coordinates"},
{TEXCO_UV, "UV", 0, "UV", "Use UV coordinates for texture coordinates"},
{TEXCO_ORCO, "ORCO", 0, "Generated", "Use the original undeformed coordinates of the object"},
{TEXCO_STRAND, "STRAND", 0, "Strand / Particle",
               "Use normalized strand texture coordinate (1D) or particle age (X) and trail position (Y)"},
{TEXCO_STICKY, "STICKY", 0, "Sticky", "Use mesh's sticky coordinates for the texture coordinates"},
{TEXCO_WINDOW, "WINDOW", 0, "Window", "Use screen coordinates as texture coordinates"},
{TEXCO_NORM, "NORMAL", 0, "Normal", "Use normal vector as texture coordinates"},
{TEXCO_REFL, "REFLECTION", 0, "Reflection", "Use reflection vector as texture coordinates"},
{TEXCO_STRESS, "STRESS", 0, "Stress", "Use the difference of edge lengths compared to original coordinates of the mesh"},
{TEXCO_TANGENT, "TANGENT", 0, "Tangent", "Use the optional tangent vector as texture coordinates"},
{0, NULL, 0, NULL, NULL}}

Definition at line 41 of file rna_material.c.

Referenced by rna_def_lamp_mtex(), and rna_def_modifier_generic_map_info().

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

Definition at line 56 of file rna_material.c.

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