Blender  V2.93
Classes | Macros | Typedefs | Enumerations
DNA_material_types.h File Reference
#include "DNA_ID.h"
#include "DNA_defs.h"
#include "DNA_listBase.h"

Go to the source code of this file.

Classes

struct  TexPaintSlot
 
struct  MaterialGPencilStyle
 
struct  MaterialLineArt
 
struct  Material
 

Macros

#define MAX_MTEX   18
 
#define MAXMAT   (32767 - 1)
 
#define MA_DS_EXPAND   (1 << 1)
 
#define MA_DS_SHOW_TEXS   (1 << 2)
 
#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 << 0)
 
#define TEXCO_GLOB   (1 << 3)
 
#define TEXCO_UV   (1 << 4)
 
#define TEXCO_OBJECT   (1 << 5)
 
#define TEXCO_WINDOW   (1 << 10)
 
#define TEXCO_STRAND   (1 << 13)
 
#define TEXCO_PARTICLE   (1 << 13)
 
#define MAP_COL   (1 << 0)
 
#define MAP_ALPHA   (1 << 7)
 
#define MAP_PA_INIT   ((1 << 5) - 1)
 
#define MAP_PA_TIME   (1 << 0)
 
#define MAP_PA_LIFE   (1 << 1)
 
#define MAP_PA_DENS   (1 << 2)
 
#define MAP_PA_SIZE   (1 << 3)
 
#define MAP_PA_LENGTH   (1 << 4)
 
#define MAP_PA_IVEL   (1 << 5)
 
#define MAP_PA_PVEL   (1 << 6)
 
#define MAP_PA_CLUMP   (1 << 7)
 
#define MAP_PA_KINK   (1 << 8)
 
#define MAP_PA_ROUGH   (1 << 9)
 
#define MAP_PA_FREQ   (1 << 10)
 
#define MA_FLAT   0
 
#define MA_SPHERE   1
 
#define MA_CUBE   2
 
#define MA_SHADERBALL   3
 
#define MA_SPHERE_A   4 /* Used for icon renders only. */
 
#define MA_TEXTURE   5
 
#define MA_LAMP   6
 
#define MA_SKY   7
 
#define MA_HAIR   10
 
#define MA_ATMOS   11
 
#define MA_CLOTH   12
 
#define MA_FLUID   13
 
#define MA_PREVIEW_WORLD   (1 << 0)
 

Typedefs

typedef struct TexPaintSlot TexPaintSlot
 
typedef struct MaterialGPencilStyle MaterialGPencilStyle
 
typedef enum eMaterialGPencilStyle_Flag eMaterialGPencilStyle_Flag
 
typedef enum eMaterialGPencilStyle_Mode eMaterialGPencilStyle_Mode
 
typedef struct MaterialLineArt MaterialLineArt
 
typedef enum eMaterialLineArtFlags eMaterialLineArtFlags
 
typedef struct Material Material
 

Enumerations

enum  eMaterialGPencilStyle_Flag {
  GP_MATERIAL_FILL_PATTERN = (1 << 0) , GP_MATERIAL_HIDE = (1 << 1) , GP_MATERIAL_LOCKED = (1 << 2) , GP_MATERIAL_HIDE_ONIONSKIN = (1 << 3) ,
  GP_MATERIAL_TEX_CLAMP = (1 << 4) , GP_MATERIAL_FILL_TEX_MIX = (1 << 5) , GP_MATERIAL_FLIP_FILL = (1 << 6) , GP_MATERIAL_STROKE_PATTERN = (1 << 7) ,
  GP_MATERIAL_STROKE_SHOW = (1 << 8) , GP_MATERIAL_FILL_SHOW = (1 << 9) , GP_MATERIAL_STROKE_TEX_MIX = (1 << 11) , GP_MATERIAL_DISABLE_STENCIL = (1 << 12) ,
  GP_MATERIAL_IS_STROKE_HOLDOUT = (1 << 13) , GP_MATERIAL_IS_FILL_HOLDOUT = (1 << 14)
}
 
enum  eMaterialGPencilStyle_Mode { GP_MATERIAL_MODE_LINE = 0 , GP_MATERIAL_MODE_DOT = 1 , GP_MATERIAL_MODE_SQUARE = 2 }
 
enum  eMaterialLineArtFlags { LRT_MATERIAL_TRANSPARENCY_ENABLED = (1 << 0) }
 
enum  { MA_BM_SOLID = 0 , MA_BM_CLIP = 3 , MA_BM_HASHED = 4 , MA_BM_BLEND = 5 }
 
enum  { MA_BL_HIDE_BACKFACE = (1 << 0) , MA_BL_SS_REFRACTION = (1 << 1) , MA_BL_CULL_BACKFACE = (1 << 2) , MA_BL_TRANSLUCENCY = (1 << 3) }
 
enum  { MA_BS_NONE = 0 , MA_BS_SOLID = 1 , MA_BS_CLIP = 2 , MA_BS_HASHED = 3 }
 
enum  { GP_MATERIAL_STROKE_STYLE_SOLID = 0 , GP_MATERIAL_STROKE_STYLE_TEXTURE = 1 }
 
enum  { GP_MATERIAL_FILL_STYLE_SOLID = 0 , GP_MATERIAL_FILL_STYLE_GRADIENT = 1 , GP_MATERIAL_FILL_STYLE_CHECKER = 2 , GP_MATERIAL_FILL_STYLE_TEXTURE = 3 }
 
enum  { GP_MATERIAL_GRADIENT_LINEAR = 0 , GP_MATERIAL_GRADIENT_RADIAL = 1 }
 
enum  { GP_MATERIAL_FOLLOW_PATH = 0 , GP_MATERIAL_FOLLOW_OBJ = 1 , GP_MATERIAL_FOLLOW_FIXED = 2 }
 

Macro Definition Documentation

◆ MA_ATMOS

#define MA_ATMOS   11

Definition at line 318 of file DNA_material_types.h.

◆ MA_CLOTH

#define MA_CLOTH   12

Definition at line 319 of file DNA_material_types.h.

◆ MA_CUBE

#define MA_CUBE   2

Definition at line 311 of file DNA_material_types.h.

◆ MA_DS_EXPAND

#define MA_DS_EXPAND   (1 << 1)

Definition at line 238 of file DNA_material_types.h.

◆ MA_DS_SHOW_TEXS

#define MA_DS_SHOW_TEXS   (1 << 2)

Definition at line 243 of file DNA_material_types.h.

◆ MA_FLAT

#define MA_FLAT   0

Definition at line 309 of file DNA_material_types.h.

◆ MA_FLUID

#define MA_FLUID   13

Definition at line 320 of file DNA_material_types.h.

◆ MA_HAIR

#define MA_HAIR   10

Definition at line 317 of file DNA_material_types.h.

◆ MA_LAMP

#define MA_LAMP   6

Definition at line 315 of file DNA_material_types.h.

◆ MA_PREVIEW_WORLD

#define MA_PREVIEW_WORLD   (1 << 0)

Definition at line 323 of file DNA_material_types.h.

◆ MA_RAMP_ADD

#define MA_RAMP_ADD   1

Definition at line 247 of file DNA_material_types.h.

◆ MA_RAMP_BLEND

#define MA_RAMP_BLEND   0

Definition at line 246 of file DNA_material_types.h.

◆ MA_RAMP_BURN

#define MA_RAMP_BURN   11

Definition at line 257 of file DNA_material_types.h.

◆ MA_RAMP_COLOR

#define MA_RAMP_COLOR   15

Definition at line 261 of file DNA_material_types.h.

◆ MA_RAMP_DARK

#define MA_RAMP_DARK   7

Definition at line 253 of file DNA_material_types.h.

◆ MA_RAMP_DIFF

#define MA_RAMP_DIFF   6

Definition at line 252 of file DNA_material_types.h.

◆ MA_RAMP_DIV

#define MA_RAMP_DIV   5

Definition at line 251 of file DNA_material_types.h.

◆ MA_RAMP_DODGE

#define MA_RAMP_DODGE   10

Definition at line 256 of file DNA_material_types.h.

◆ MA_RAMP_HUE

#define MA_RAMP_HUE   12

Definition at line 258 of file DNA_material_types.h.

◆ MA_RAMP_LIGHT

#define MA_RAMP_LIGHT   8

Definition at line 254 of file DNA_material_types.h.

◆ MA_RAMP_LINEAR

#define MA_RAMP_LINEAR   17

Definition at line 263 of file DNA_material_types.h.

◆ MA_RAMP_MULT

#define MA_RAMP_MULT   2

Definition at line 248 of file DNA_material_types.h.

◆ MA_RAMP_OVERLAY

#define MA_RAMP_OVERLAY   9

Definition at line 255 of file DNA_material_types.h.

◆ MA_RAMP_SAT

#define MA_RAMP_SAT   13

Definition at line 259 of file DNA_material_types.h.

◆ MA_RAMP_SCREEN

#define MA_RAMP_SCREEN   4

Definition at line 250 of file DNA_material_types.h.

◆ MA_RAMP_SOFT

#define MA_RAMP_SOFT   16

Definition at line 262 of file DNA_material_types.h.

◆ MA_RAMP_SUB

#define MA_RAMP_SUB   3

Definition at line 249 of file DNA_material_types.h.

◆ MA_RAMP_VAL

#define MA_RAMP_VAL   14

Definition at line 260 of file DNA_material_types.h.

◆ MA_SHADERBALL

#define MA_SHADERBALL   3

Definition at line 312 of file DNA_material_types.h.

◆ MA_SKY

#define MA_SKY   7

Definition at line 316 of file DNA_material_types.h.

◆ MA_SPHERE

#define MA_SPHERE   1

Definition at line 310 of file DNA_material_types.h.

◆ MA_SPHERE_A

#define MA_SPHERE_A   4 /* Used for icon renders only. */

Definition at line 313 of file DNA_material_types.h.

◆ MA_TEXTURE

#define MA_TEXTURE   5

Definition at line 314 of file DNA_material_types.h.

◆ MAP_ALPHA

#define MAP_ALPHA   (1 << 7)

Definition at line 288 of file DNA_material_types.h.

◆ MAP_COL

#define MAP_COL   (1 << 0)

Definition at line 287 of file DNA_material_types.h.

◆ MAP_PA_CLUMP

#define MAP_PA_CLUMP   (1 << 7)

Definition at line 303 of file DNA_material_types.h.

◆ MAP_PA_DENS

#define MAP_PA_DENS   (1 << 2)

Definition at line 295 of file DNA_material_types.h.

◆ MAP_PA_FREQ

#define MAP_PA_FREQ   (1 << 10)

Definition at line 306 of file DNA_material_types.h.

◆ MAP_PA_INIT

#define MAP_PA_INIT   ((1 << 5) - 1)

Definition at line 292 of file DNA_material_types.h.

◆ MAP_PA_IVEL

#define MAP_PA_IVEL   (1 << 5)

Definition at line 299 of file DNA_material_types.h.

◆ MAP_PA_KINK

#define MAP_PA_KINK   (1 << 8)

Definition at line 304 of file DNA_material_types.h.

◆ MAP_PA_LENGTH

#define MAP_PA_LENGTH   (1 << 4)

Definition at line 297 of file DNA_material_types.h.

◆ MAP_PA_LIFE

#define MAP_PA_LIFE   (1 << 1)

Definition at line 294 of file DNA_material_types.h.

◆ MAP_PA_PVEL

#define MAP_PA_PVEL   (1 << 6)

Definition at line 301 of file DNA_material_types.h.

◆ MAP_PA_ROUGH

#define MAP_PA_ROUGH   (1 << 9)

Definition at line 305 of file DNA_material_types.h.

◆ MAP_PA_SIZE

#define MAP_PA_SIZE   (1 << 3)

Definition at line 296 of file DNA_material_types.h.

◆ MAP_PA_TIME

#define MAP_PA_TIME   (1 << 0)

Definition at line 293 of file DNA_material_types.h.

◆ MAX_MTEX

#define MAX_MTEX   18

Definition at line 35 of file DNA_material_types.h.

◆ MAXMAT

#define MAXMAT   (32767 - 1)

Definition at line 232 of file DNA_material_types.h.

◆ TEXCO_GLOB

#define TEXCO_GLOB   (1 << 3)

Definition at line 269 of file DNA_material_types.h.

◆ TEXCO_OBJECT

#define TEXCO_OBJECT   (1 << 5)

Definition at line 271 of file DNA_material_types.h.

◆ TEXCO_ORCO

#define TEXCO_ORCO   (1 << 0)

Definition at line 266 of file DNA_material_types.h.

◆ TEXCO_PARTICLE

#define TEXCO_PARTICLE   (1 << 13)

strand is used for normal materials, particle for halo materials

Definition at line 282 of file DNA_material_types.h.

◆ TEXCO_STRAND

#define TEXCO_STRAND   (1 << 13)

Definition at line 280 of file DNA_material_types.h.

◆ TEXCO_UV

#define TEXCO_UV   (1 << 4)

Definition at line 270 of file DNA_material_types.h.

◆ TEXCO_WINDOW

#define TEXCO_WINDOW   (1 << 10)

Definition at line 276 of file DNA_material_types.h.

Typedef Documentation

◆ eMaterialGPencilStyle_Flag

◆ eMaterialGPencilStyle_Mode

◆ eMaterialLineArtFlags

◆ Material

typedef struct Material Material

◆ MaterialGPencilStyle

◆ MaterialLineArt

◆ TexPaintSlot

typedef struct TexPaintSlot TexPaintSlot

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MA_BM_SOLID 
MA_BM_CLIP 
MA_BM_HASHED 
MA_BM_BLEND 

Definition at line 326 of file DNA_material_types.h.

◆ anonymous enum

anonymous enum
Enumerator
MA_BL_HIDE_BACKFACE 
MA_BL_SS_REFRACTION 
MA_BL_CULL_BACKFACE 
MA_BL_TRANSLUCENCY 

Definition at line 336 of file DNA_material_types.h.

◆ anonymous enum

anonymous enum
Enumerator
MA_BS_NONE 
MA_BS_SOLID 
MA_BS_CLIP 
MA_BS_HASHED 

Definition at line 344 of file DNA_material_types.h.

◆ anonymous enum

anonymous enum
Enumerator
GP_MATERIAL_STROKE_STYLE_SOLID 
GP_MATERIAL_STROKE_STYLE_TEXTURE 

Definition at line 352 of file DNA_material_types.h.

◆ anonymous enum

anonymous enum
Enumerator
GP_MATERIAL_FILL_STYLE_SOLID 
GP_MATERIAL_FILL_STYLE_GRADIENT 
GP_MATERIAL_FILL_STYLE_CHECKER 
GP_MATERIAL_FILL_STYLE_TEXTURE 

Definition at line 358 of file DNA_material_types.h.

◆ anonymous enum

anonymous enum
Enumerator
GP_MATERIAL_GRADIENT_LINEAR 
GP_MATERIAL_GRADIENT_RADIAL 

Definition at line 366 of file DNA_material_types.h.

◆ anonymous enum

anonymous enum
Enumerator
GP_MATERIAL_FOLLOW_PATH 
GP_MATERIAL_FOLLOW_OBJ 
GP_MATERIAL_FOLLOW_FIXED 

Definition at line 372 of file DNA_material_types.h.

◆ eMaterialGPencilStyle_Flag

Enumerator
GP_MATERIAL_FILL_PATTERN 
GP_MATERIAL_HIDE 
GP_MATERIAL_LOCKED 
GP_MATERIAL_HIDE_ONIONSKIN 
GP_MATERIAL_TEX_CLAMP 
GP_MATERIAL_FILL_TEX_MIX 
GP_MATERIAL_FLIP_FILL 
GP_MATERIAL_STROKE_PATTERN 
GP_MATERIAL_STROKE_SHOW 
GP_MATERIAL_FILL_SHOW 
GP_MATERIAL_STROKE_TEX_MIX 
GP_MATERIAL_DISABLE_STENCIL 
GP_MATERIAL_IS_STROKE_HOLDOUT 
GP_MATERIAL_IS_FILL_HOLDOUT 

Definition at line 111 of file DNA_material_types.h.

◆ eMaterialGPencilStyle_Mode

Enumerator
GP_MATERIAL_MODE_LINE 
GP_MATERIAL_MODE_DOT 
GP_MATERIAL_MODE_SQUARE 

Definition at line 142 of file DNA_material_types.h.

◆ eMaterialLineArtFlags

Enumerator
LRT_MATERIAL_TRANSPARENCY_ENABLED 

Definition at line 154 of file DNA_material_types.h.