Blender  V3.3
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 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
 
typedef enum ePreviewType ePreviewType
 

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_MASK_ENABLED = (1 << 0) , LRT_MATERIAL_CUSTOM_OCCLUSION_EFFECTIVENESS = (1 << 1) , LRT_MATERIAL_CUSTOM_INTERSECTION_PRIORITY = (1 << 2) }
 
enum  ePreviewType {
  MA_FLAT = 0 , MA_SPHERE = 1 , MA_CUBE = 2 , MA_SHADERBALL = 3 ,
  MA_SPHERE_A = 4 , MA_TEXTURE = 5 , MA_LAMP = 6 , MA_SKY = 7 ,
  MA_HAIR = 10 , MA_ATMOS = 11 , MA_CLOTH = 12 , MA_FLUID = 13
}
 
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_DS_EXPAND

#define MA_DS_EXPAND   (1 << 1)

Definition at line 246 of file DNA_material_types.h.

◆ MA_DS_SHOW_TEXS

#define MA_DS_SHOW_TEXS   (1 << 2)

Definition at line 251 of file DNA_material_types.h.

◆ MA_PREVIEW_WORLD

#define MA_PREVIEW_WORLD   (1 << 0)

Definition at line 315 of file DNA_material_types.h.

◆ MA_RAMP_ADD

#define MA_RAMP_ADD   1

Definition at line 255 of file DNA_material_types.h.

◆ MA_RAMP_BLEND

#define MA_RAMP_BLEND   0

Definition at line 254 of file DNA_material_types.h.

◆ MA_RAMP_BURN

#define MA_RAMP_BURN   11

Definition at line 265 of file DNA_material_types.h.

◆ MA_RAMP_COLOR

#define MA_RAMP_COLOR   15

Definition at line 269 of file DNA_material_types.h.

◆ MA_RAMP_DARK

#define MA_RAMP_DARK   7

Definition at line 261 of file DNA_material_types.h.

◆ MA_RAMP_DIFF

#define MA_RAMP_DIFF   6

Definition at line 260 of file DNA_material_types.h.

◆ MA_RAMP_DIV

#define MA_RAMP_DIV   5

Definition at line 259 of file DNA_material_types.h.

◆ MA_RAMP_DODGE

#define MA_RAMP_DODGE   10

Definition at line 264 of file DNA_material_types.h.

◆ MA_RAMP_HUE

#define MA_RAMP_HUE   12

Definition at line 266 of file DNA_material_types.h.

◆ MA_RAMP_LIGHT

#define MA_RAMP_LIGHT   8

Definition at line 262 of file DNA_material_types.h.

◆ MA_RAMP_LINEAR

#define MA_RAMP_LINEAR   17

Definition at line 271 of file DNA_material_types.h.

◆ MA_RAMP_MULT

#define MA_RAMP_MULT   2

Definition at line 256 of file DNA_material_types.h.

◆ MA_RAMP_OVERLAY

#define MA_RAMP_OVERLAY   9

Definition at line 263 of file DNA_material_types.h.

◆ MA_RAMP_SAT

#define MA_RAMP_SAT   13

Definition at line 267 of file DNA_material_types.h.

◆ MA_RAMP_SCREEN

#define MA_RAMP_SCREEN   4

Definition at line 258 of file DNA_material_types.h.

◆ MA_RAMP_SOFT

#define MA_RAMP_SOFT   16

Definition at line 270 of file DNA_material_types.h.

◆ MA_RAMP_SUB

#define MA_RAMP_SUB   3

Definition at line 257 of file DNA_material_types.h.

◆ MA_RAMP_VAL

#define MA_RAMP_VAL   14

Definition at line 268 of file DNA_material_types.h.

◆ MAP_ALPHA

#define MAP_ALPHA   (1 << 7)

Definition at line 296 of file DNA_material_types.h.

◆ MAP_COL

#define MAP_COL   (1 << 0)

MTex.mapto

Definition at line 295 of file DNA_material_types.h.

◆ MAX_MTEX

#define MAX_MTEX   18

Definition at line 19 of file DNA_material_types.h.

◆ MAXMAT

#define MAXMAT   (32767 - 1)

Definition at line 240 of file DNA_material_types.h.

◆ TEXCO_GLOB

#define TEXCO_GLOB   (1 << 3)

Definition at line 277 of file DNA_material_types.h.

◆ TEXCO_OBJECT

#define TEXCO_OBJECT   (1 << 5)

Definition at line 279 of file DNA_material_types.h.

◆ TEXCO_ORCO

#define TEXCO_ORCO   (1 << 0)

Definition at line 274 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 290 of file DNA_material_types.h.

◆ TEXCO_STRAND

#define TEXCO_STRAND   (1 << 13)

Definition at line 288 of file DNA_material_types.h.

◆ TEXCO_UV

#define TEXCO_UV   (1 << 4)

Definition at line 278 of file DNA_material_types.h.

◆ TEXCO_WINDOW

#define TEXCO_WINDOW   (1 << 10)

Definition at line 284 of file DNA_material_types.h.

Typedef Documentation

◆ eMaterialGPencilStyle_Flag

◆ eMaterialGPencilStyle_Mode

◆ eMaterialLineArtFlags

◆ ePreviewType

typedef enum ePreviewType ePreviewType

◆ 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 318 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 328 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 336 of file DNA_material_types.h.

◆ anonymous enum

anonymous enum
Enumerator
GP_MATERIAL_STROKE_STYLE_SOLID 
GP_MATERIAL_STROKE_STYLE_TEXTURE 

Definition at line 344 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 350 of file DNA_material_types.h.

◆ anonymous enum

anonymous enum
Enumerator
GP_MATERIAL_GRADIENT_LINEAR 
GP_MATERIAL_GRADIENT_RADIAL 

Definition at line 358 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 364 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 106 of file DNA_material_types.h.

◆ eMaterialGPencilStyle_Mode

Enumerator
GP_MATERIAL_MODE_LINE 
GP_MATERIAL_MODE_DOT 
GP_MATERIAL_MODE_SQUARE 

Definition at line 137 of file DNA_material_types.h.

◆ eMaterialLineArtFlags

Enumerator
LRT_MATERIAL_MASK_ENABLED 
LRT_MATERIAL_CUSTOM_OCCLUSION_EFFECTIVENESS 
LRT_MATERIAL_CUSTOM_INTERSECTION_PRIORITY 

Definition at line 158 of file DNA_material_types.h.

◆ ePreviewType

Enumerator
MA_FLAT 
MA_SPHERE 
MA_CUBE 
MA_SHADERBALL 
MA_SPHERE_A 
MA_TEXTURE 
MA_LAMP 
MA_SKY 
MA_HAIR 
MA_ATMOS 
MA_CLOTH 
MA_FLUID 

Definition at line 299 of file DNA_material_types.h.