Blender  V2.59
Classes | Defines | Typedefs
DNA_material_types.h File Reference
#include "DNA_ID.h"
#include "DNA_listBase.h"

Go to the source code of this file.

Classes

struct  VolumeSettings
struct  Material

Defines

#define MAX_MTEX   18
#define MAXMAT   32767
#define MA_TYPE_SURFACE   0
#define MA_TYPE_HALO   1
#define MA_TYPE_VOLUME   2
#define MA_TYPE_WIRE   3
#define MA_IS_USED   1
#define MA_DS_EXPAND   2
#define MA_DS_SHOW_TEXS   4
#define MA_TRACEBLE   1
#define MA_SHADOW   2
#define MA_SHLESS   4
#define MA_WIRE   8
#define MA_VERTEXCOL   16
#define MA_HALO_SOFT   16
#define MA_HALO   32
#define MA_ZTRANSP   64
#define MA_VERTEXCOLP   128
#define MA_ZINV   256
#define MA_HALO_RINGS   256
#define MA_ENV   512
#define MA_HALO_LINES   512
#define MA_ONLYSHADOW   1024
#define MA_HALO_XALPHA   1024
#define MA_STAR   0x800
#define MA_FACETEXTURE   0x800
#define MA_HALOTEX   0x1000
#define MA_HALOPUNO   0x2000
#define MA_ONLYCAST   0x2000
#define MA_NOMIST   0x4000
#define MA_HALO_SHADE   0x4000
#define MA_HALO_FLARE   0x8000
#define MA_TRANSP   0x10000
#define MA_RAYTRANSP   0x20000
#define MA_RAYMIRROR   0x40000
#define MA_SHADOW_TRA   0x80000
#define MA_RAMP_COL   0x100000
#define MA_RAMP_SPEC   0x200000
#define MA_RAYBIAS   0x400000
#define MA_FULL_OSA   0x800000
#define MA_TANGENT_STR   0x1000000
#define MA_SHADBUF   0x2000000
#define MA_TANGENT_V   0x4000000
#define MA_NORMAP_TANG   0x8000000
#define MA_GROUP_NOLAY   0x10000000
#define MA_FACETEXTURE_ALPHA   0x20000000
#define MA_STR_B_UNITS   0x40000000
#define MA_STR_SURFDIFF   0x80000000
#define MA_MODE_MASK   0x6fffffff
#define MA_RAYMIR_FADETOSKY   0
#define MA_RAYMIR_FADETOMAT   1
#define MA_SO_OLD   0
#define MA_SO_SHADOW   1
#define MA_SO_SHADED   2
#define MA_CUBIC   1
#define MA_OBCOLOR   2
#define MA_APPROX_OCCLUSION   4
#define MA_DIFF_LAMBERT   0
#define MA_DIFF_ORENNAYAR   1
#define MA_DIFF_TOON   2
#define MA_DIFF_MINNAERT   3
#define MA_DIFF_FRESNEL   4
#define MA_SPEC_COOKTORR   0
#define MA_SPEC_PHONG   1
#define MA_SPEC_BLINN   2
#define MA_SPEC_TOON   3
#define MA_SPEC_WARDISO   4
#define MA_DRAW_DYNABUTS   1
#define MA_FH_NOR   2
#define MA_RAMP_IN_SHADER   0
#define MA_RAMP_IN_ENERGY   1
#define MA_RAMP_IN_NOR   2
#define MA_RAMP_IN_RESULT   3
#define MA_RAMP_BLEND   0
#define MA_RAMP_ADD   1
#define MA_RAMP_MULT   2
#define MA_RAMP_SUB   3
#define MA_RAMP_SCREEN   4
#define MA_RAMP_DIV   5
#define MA_RAMP_DIFF   6
#define MA_RAMP_DARK   7
#define MA_RAMP_LIGHT   8
#define MA_RAMP_OVERLAY   9
#define MA_RAMP_DODGE   10
#define MA_RAMP_BURN   11
#define MA_RAMP_HUE   12
#define MA_RAMP_SAT   13
#define MA_RAMP_VAL   14
#define MA_RAMP_COLOR   15
#define MA_RAMP_SOFT   16
#define MA_RAMP_LINEAR   17
#define TEXCO_ORCO   1
#define TEXCO_REFL   2
#define TEXCO_NORM   4
#define TEXCO_GLOB   8
#define TEXCO_UV   16
#define TEXCO_OBJECT   32
#define TEXCO_LAVECTOR   64
#define TEXCO_VIEW   128
#define TEXCO_STICKY   256
#define TEXCO_OSA   512
#define TEXCO_WINDOW   1024
#define NEED_UV   2048
#define TEXCO_TANGENT   4096
#define TEXCO_STRAND   8192
#define TEXCO_PARTICLE   8192
#define TEXCO_STRESS   16384
#define TEXCO_SPEED   32768
#define MAP_COL   1
#define MAP_NORM   2
#define MAP_COLSPEC   4
#define MAP_COLMIR   8
#define MAP_VARS   (0xFFF0)
#define MAP_REF   16
#define MAP_SPEC   32
#define MAP_EMIT   64
#define MAP_ALPHA   128
#define MAP_HAR   256
#define MAP_RAYMIRR   512
#define MAP_TRANSLU   1024
#define MAP_AMB   2048
#define MAP_DISPLACE   4096
#define MAP_WARP   8192
#define MAP_LAYER   16384
#define MAP_DENSITY   128
#define MAP_EMISSION   64
#define MAP_EMISSION_COL   1
#define MAP_SCATTERING   16
#define MAP_TRANSMISSION_COL   8
#define MAP_REFLECTION_COL   4
#define MAP_REFLECTION   32
#define MAP_PA_INIT   31
#define MAP_PA_TIME   1
#define MAP_PA_LIFE   2
#define MAP_PA_DENS   4
#define MAP_PA_SIZE   8
#define MAP_PA_LENGTH   16
#define MAP_PA_IVEL   32
#define MAP_PA_PVEL   64
#define MAP_PA_CACHE   912
#define MAP_PA_CLUMP   128
#define MAP_PA_KINK   256
#define MAP_PA_ROUGH   512
#define MA_FLAT   0
#define MA_SPHERE   1
#define MA_CUBE   2
#define MA_MONKEY   3
#define MA_SPHERE_A   4
#define MA_TEXTURE   5
#define MA_LAMP   6
#define MA_SKY   7
#define MA_HAIR   10
#define MA_ATMOS   11
#define MA_DARK   1
#define MA_DIFF_SSS   1
#define MA_VOL_STEP_RANDOMIZED   0
#define MA_VOL_STEP_CONSTANT   1
#define MA_VOL_STEP_ADAPTIVE   2
#define MA_VOL_RECV_EXT_SHADOW   1
#define MA_VOL_PRECACHESHADING   8
#define MA_VOL_SHADE_SHADELESS   0
#define MA_VOL_SHADE_SHADOWED   2
#define MA_VOL_SHADE_SHADED   1
#define MA_VOL_SHADE_MULTIPLE   3
#define MA_VOL_SHADE_SHADEDPLUSMULTIPLE   4

Typedefs

typedef struct VolumeSettings VolumeSettings
typedef struct Material Material

Detailed Description

Definition in file DNA_material_types.h.


Define Documentation

#define MA_APPROX_OCCLUSION   4

Definition at line 250 of file DNA_material_types.h.

Referenced by do_versions(), init_material(), occ_tree_build(), and RNA_def_material().

#define MA_ATMOS   11

Definition at line 378 of file DNA_material_types.h.

Referenced by preview_prepare_scene().

#define MA_CUBE   2

Definition at line 371 of file DNA_material_types.h.

Referenced by RNA_def_material().

#define MA_CUBIC   1

Definition at line 248 of file DNA_material_types.h.

Referenced by RNA_def_material(), and shade_one_light().

#define MA_DARK   1

Definition at line 381 of file DNA_material_types.h.

#define MA_DIFF_FRESNEL   4

Definition at line 257 of file DNA_material_types.h.

Referenced by rna_def_material_diffuse(), and shade_one_light().

#define MA_DIFF_LAMBERT   0
#define MA_DIFF_MINNAERT   3

Definition at line 256 of file DNA_material_types.h.

Referenced by rna_def_material_diffuse(), and shade_one_light().

#define MA_DIFF_ORENNAYAR   1

Definition at line 254 of file DNA_material_types.h.

Referenced by rna_def_material_diffuse(), and shade_one_light().

#define MA_DIFF_SSS   1
#define MA_DIFF_TOON   2

Definition at line 255 of file DNA_material_types.h.

Referenced by rna_def_material_diffuse(), and shade_one_light().

#define MA_DRAW_DYNABUTS   1

Definition at line 267 of file DNA_material_types.h.

#define MA_DS_EXPAND   2

Definition at line 186 of file DNA_material_types.h.

Referenced by acf_dsmat_setting_flag().

#define MA_DS_SHOW_TEXS   4

Definition at line 191 of file DNA_material_types.h.

Referenced by acf_filltexd_setting_flag().

#define MA_ENV   512

Definition at line 205 of file DNA_material_types.h.

Referenced by RNA_def_material(), zbuffer_solid(), and zbuffer_sss().

#define MA_FACETEXTURE   0x800
#define MA_FACETEXTURE_ALPHA   0x20000000

Definition at line 232 of file DNA_material_types.h.

Referenced by RNA_def_material(), shade_color(), and shade_lamp_loop().

#define MA_FH_NOR   2
#define MA_FLAT   0

Definition at line 369 of file DNA_material_types.h.

Referenced by preview_prepare_scene(), and RNA_def_material().

#define MA_FULL_OSA   0x800000

Definition at line 224 of file DNA_material_types.h.

Referenced by RNA_def_material(), and set_fullsample_trace_flag().

#define MA_GROUP_NOLAY   0x10000000

Definition at line 231 of file DNA_material_types.h.

Referenced by RNA_def_material(), and set_material_lightgroups().

#define MA_HAIR   10

Definition at line 377 of file DNA_material_types.h.

Referenced by RNA_def_material().

#define MA_HALO   32

Definition at line 200 of file DNA_material_types.h.

Referenced by do_versions().

#define MA_HALO_FLARE   0x8000

Definition at line 216 of file DNA_material_types.h.

Referenced by RE_inithalo(), RE_inithalo_particle(), and rna_def_material_halo().

#define MA_HALO_LINES   512

Definition at line 206 of file DNA_material_types.h.

Referenced by RE_inithalo(), RE_inithalo_particle(), and rna_def_material_halo().

#define MA_HALO_RINGS   256

Definition at line 204 of file DNA_material_types.h.

Referenced by RE_inithalo(), RE_inithalo_particle(), and rna_def_material_halo().

#define MA_HALO_SHADE   0x4000

Definition at line 215 of file DNA_material_types.h.

Referenced by rna_def_material_halo(), and shadeHaloFloat().

#define MA_HALO_SOFT   16
#define MA_HALO_XALPHA   1024

Definition at line 208 of file DNA_material_types.h.

Referenced by RE_inithalo(), RE_inithalo_particle(), and rna_def_material_halo().

#define MA_HALOPUNO   0x2000

Definition at line 212 of file DNA_material_types.h.

Referenced by make_render_halos(), and rna_def_material_halo().

#define MA_HALOTEX   0x1000

Definition at line 211 of file DNA_material_types.h.

Referenced by RE_inithalo(), RE_inithalo_particle(), and rna_def_material_halo().

#define MA_IS_USED   1
#define MA_LAMP   6

Definition at line 375 of file DNA_material_types.h.

Referenced by preview_prepare_scene().

#define MA_MODE_MASK   0x6fffffff

Definition at line 236 of file DNA_material_types.h.

#define MA_MONKEY   3

Definition at line 372 of file DNA_material_types.h.

Referenced by RNA_def_material().

#define MA_NOMIST   0x4000
#define MA_NORMAP_TANG   0x8000000
#define MA_OBCOLOR   2
#define MA_ONLYCAST   0x2000
#define MA_ONLYSHADOW   1024
#define MA_RAMP_ADD   1

Definition at line 277 of file DNA_material_types.h.

Referenced by add_lamp(), do_versions(), and ramp_blend().

#define MA_RAMP_BLEND   0

Definition at line 276 of file DNA_material_types.h.

Referenced by colorfn(), do_proc(), and ramp_blend().

#define MA_RAMP_BURN   11

Definition at line 287 of file DNA_material_types.h.

Referenced by ramp_blend().

#define MA_RAMP_COL   0x100000
#define MA_RAMP_COLOR   15

Definition at line 291 of file DNA_material_types.h.

Referenced by ramp_blend(), and texture_rgb_blend().

#define MA_RAMP_DARK   7

Definition at line 283 of file DNA_material_types.h.

Referenced by ramp_blend().

#define MA_RAMP_DIFF   6

Definition at line 282 of file DNA_material_types.h.

Referenced by ramp_blend().

#define MA_RAMP_DIV   5

Definition at line 281 of file DNA_material_types.h.

Referenced by ramp_blend().

#define MA_RAMP_DODGE   10

Definition at line 286 of file DNA_material_types.h.

Referenced by ramp_blend().

#define MA_RAMP_HUE   12

Definition at line 288 of file DNA_material_types.h.

Referenced by ramp_blend(), and texture_rgb_blend().

#define MA_RAMP_IN_ENERGY   1

Definition at line 272 of file DNA_material_types.h.

Referenced by add_to_diffuse(), do_specular_ramp(), and rna_def_material_colors().

#define MA_RAMP_IN_NOR   2

Definition at line 273 of file DNA_material_types.h.

Referenced by add_to_diffuse(), do_specular_ramp(), and rna_def_material_colors().

#define MA_RAMP_IN_RESULT   3
#define MA_RAMP_IN_SHADER   0

Definition at line 271 of file DNA_material_types.h.

Referenced by add_to_diffuse(), do_specular_ramp(), and rna_def_material_colors().

#define MA_RAMP_LIGHT   8

Definition at line 284 of file DNA_material_types.h.

Referenced by ramp_blend().

#define MA_RAMP_LINEAR   17

Definition at line 293 of file DNA_material_types.h.

Referenced by ramp_blend(), and texture_rgb_blend().

#define MA_RAMP_MULT   2

Definition at line 278 of file DNA_material_types.h.

Referenced by ramp_blend().

#define MA_RAMP_OVERLAY   9

Definition at line 285 of file DNA_material_types.h.

Referenced by ramp_blend().

#define MA_RAMP_SAT   13

Definition at line 289 of file DNA_material_types.h.

Referenced by ramp_blend(), and texture_rgb_blend().

#define MA_RAMP_SCREEN   4

Definition at line 280 of file DNA_material_types.h.

Referenced by ramp_blend().

#define MA_RAMP_SOFT   16

Definition at line 292 of file DNA_material_types.h.

Referenced by ramp_blend(), and texture_rgb_blend().

#define MA_RAMP_SPEC   0x200000
#define MA_RAMP_SUB   3

Definition at line 279 of file DNA_material_types.h.

Referenced by ramp_blend().

#define MA_RAMP_VAL   14

Definition at line 290 of file DNA_material_types.h.

Referenced by ramp_blend(), and texture_rgb_blend().

#define MA_RAYBIAS   0x400000

Definition at line 223 of file DNA_material_types.h.

Referenced by init_material(), RNA_def_material(), and shade_one_light().

#define MA_RAYMIR_FADETOMAT   1

Definition at line 240 of file DNA_material_types.h.

Referenced by ray_fadeout_endcolor(), and rna_def_material_raymirror().

#define MA_RAYMIR_FADETOSKY   0
#define MA_RAYMIRROR   0x40000
#define MA_RAYTRANSP   0x20000
#define MA_SHADBUF   0x2000000
#define MA_SHADOW   2

Definition at line 195 of file DNA_material_types.h.

Referenced by init_material(), RNA_def_material(), and shade_one_light().

#define MA_SHADOW_TRA   0x80000
#define MA_SHLESS   4
#define MA_SKY   7

Definition at line 376 of file DNA_material_types.h.

Referenced by preview_prepare_scene().

#define MA_SO_OLD   0

Definition at line 243 of file DNA_material_types.h.

Referenced by RNA_def_material(), and shade_lamp_loop_only_shadow().

#define MA_SO_SHADED   2

Definition at line 245 of file DNA_material_types.h.

Referenced by RNA_def_material(), and shade_lamp_loop_only_shadow().

#define MA_SO_SHADOW   1

Definition at line 244 of file DNA_material_types.h.

Referenced by RNA_def_material(), and shade_lamp_loop_only_shadow().

#define MA_SPEC_BLINN   2
#define MA_SPEC_COOKTORR   0

Definition at line 260 of file DNA_material_types.h.

Referenced by rna_def_material_specularity(), and shade_one_light().

#define MA_SPEC_PHONG   1
#define MA_SPEC_TOON   3

Definition at line 263 of file DNA_material_types.h.

Referenced by rna_def_material_specularity().

#define MA_SPEC_WARDISO   4

Definition at line 264 of file DNA_material_types.h.

Referenced by rna_def_material_specularity(), and shade_one_light().

#define MA_SPHERE   1

Definition at line 370 of file DNA_material_types.h.

Referenced by init_material(), and RNA_def_material().

#define MA_SPHERE_A   4

Definition at line 373 of file DNA_material_types.h.

Referenced by preview_prepare_scene(), and RNA_def_material().

#define MA_STAR   0x800

Definition at line 209 of file DNA_material_types.h.

Referenced by RE_inithalo(), RE_inithalo_particle(), and rna_def_material_halo().

#define MA_STR_B_UNITS   0x40000000
#define MA_STR_SURFDIFF   0x80000000
#define MA_TANGENT_STR   0x1000000
#define MA_TANGENT_V   0x4000000
#define MA_TEXTURE   5

Definition at line 374 of file DNA_material_types.h.

Referenced by preview_prepare_scene().

#define MA_TRACEBLE   1
#define MA_TRANSP   0x10000
#define MA_TYPE_HALO   1
#define MA_TYPE_SURFACE   0
#define MA_TYPE_VOLUME   2
#define MA_TYPE_WIRE   3
#define MA_VERTEXCOL   16
#define MA_VERTEXCOLP   128
#define MA_VOL_PRECACHESHADING   8
#define MA_VOL_RECV_EXT_SHADOW   1

Definition at line 392 of file DNA_material_types.h.

Referenced by rna_def_material_volume(), and vol_shade_one_lamp().

#define MA_VOL_SHADE_MULTIPLE   3
#define MA_VOL_SHADE_SHADED   1
#define MA_VOL_SHADE_SHADEDPLUSMULTIPLE   4
#define MA_VOL_SHADE_SHADELESS   0

Definition at line 396 of file DNA_material_types.h.

Referenced by rna_def_material_volume().

#define MA_VOL_SHADE_SHADOWED   2

Definition at line 397 of file DNA_material_types.h.

Referenced by rna_def_material_volume(), and vol_shade_one_lamp().

#define MA_VOL_STEP_ADAPTIVE   2

Definition at line 389 of file DNA_material_types.h.

#define MA_VOL_STEP_CONSTANT   1
#define MA_VOL_STEP_RANDOMIZED   0

Definition at line 387 of file DNA_material_types.h.

Referenced by do_versions(), init_material(), and rna_def_material_volume().

#define MA_WIRE   8

Definition at line 197 of file DNA_material_types.h.

Referenced by do_versions().

#define MA_ZINV   256

Definition at line 203 of file DNA_material_types.h.

Referenced by RNA_def_material(), and zbuffer_solid().

#define MA_ZTRANSP   64
#define MAP_ALPHA   128
#define MAP_AMB   2048
#define MAP_COL   1
#define MAP_COLMIR   8
#define MAP_COLSPEC   4
#define MAP_DENSITY   128
#define MAP_DISPLACE   4096

Definition at line 329 of file DNA_material_types.h.

Referenced by do_material_tex(), rna_def_material_mtex(), and test_for_displace().

#define MAP_EMISSION   64
#define MAP_EMISSION_COL   1
#define MAP_EMIT   64
#define MAP_HAR   256
#define MAP_LAYER   16384

Definition at line 331 of file DNA_material_types.h.

#define MAP_NORM   2
#define MAP_PA_CACHE   912

Definition at line 363 of file DNA_material_types.h.

#define MAP_PA_CLUMP   128

Definition at line 364 of file DNA_material_types.h.

Referenced by do_version_mtex_factor_2_50().

#define MAP_PA_DENS   4

Definition at line 355 of file DNA_material_types.h.

Referenced by do_version_mtex_factor_2_50().

#define MAP_PA_INIT   31

Definition at line 352 of file DNA_material_types.h.

#define MAP_PA_IVEL   32

Definition at line 359 of file DNA_material_types.h.

Referenced by do_version_mtex_factor_2_50().

#define MAP_PA_KINK   256

Definition at line 365 of file DNA_material_types.h.

Referenced by do_version_mtex_factor_2_50().

#define MAP_PA_LENGTH   16

Definition at line 357 of file DNA_material_types.h.

Referenced by do_version_mtex_factor_2_50().

#define MAP_PA_LIFE   2

Definition at line 354 of file DNA_material_types.h.

Referenced by do_version_mtex_factor_2_50().

#define MAP_PA_PVEL   64

Definition at line 361 of file DNA_material_types.h.

#define MAP_PA_ROUGH   512

Definition at line 366 of file DNA_material_types.h.

Referenced by do_version_mtex_factor_2_50().

#define MAP_PA_SIZE   8

Definition at line 356 of file DNA_material_types.h.

Referenced by do_version_mtex_factor_2_50().

#define MAP_PA_TIME   1

Definition at line 353 of file DNA_material_types.h.

Referenced by do_version_mtex_factor_2_50(), and psys_get_texture().

#define MAP_RAYMIRR   512
#define MAP_REF   16
#define MAP_REFLECTION   32
#define MAP_REFLECTION_COL   4
#define MAP_SCATTERING   16
#define MAP_SPEC   32
#define MAP_TRANSLU   1024
#define MAP_TRANSMISSION_COL   8
#define MAP_VARS   (0xFFF0)

Definition at line 320 of file DNA_material_types.h.

Referenced by do_material_tex(), and do_volume_tex().

#define MAP_WARP   8192
#define MAX_MTEX   18

Definition at line 40 of file DNA_material_types.h.

#define MAXMAT   32767
#define NEED_UV   2048
#define TEXCO_GLOB   8
#define TEXCO_LAVECTOR   64

Definition at line 302 of file DNA_material_types.h.

Referenced by do_init_render_material().

#define TEXCO_NORM   4
#define TEXCO_OBJECT   32
#define TEXCO_ORCO   1
#define TEXCO_OSA   512
#define TEXCO_PARTICLE   8192

Definition at line 311 of file DNA_material_types.h.

Referenced by get_cpa_texture(), psys_get_texture(), and RE_inithalo_particle().

#define TEXCO_REFL   2
#define TEXCO_SPEED   32768

Definition at line 313 of file DNA_material_types.h.

Referenced by do_init_render_material().

#define TEXCO_STICKY   256
#define TEXCO_STRAND   8192
#define TEXCO_STRESS   16384
#define TEXCO_TANGENT   4096
#define TEXCO_UV   16
#define TEXCO_VIEW   128
#define TEXCO_WINDOW   1024

Typedef Documentation

Value to Vector Camera Vector Extended Material

Definition at line 48 of file rna_nodetree_types.h.