3ds Max C++ API Reference
Loading...
Searching...
No Matches
Material Flags

Macros

#define MTL_IN_SCENE   (1<<0)
 The material is being used in the scene.
 
#define MTL_BEING_EDITED   (1<<1)
 The material's parameters are being displayed in the Material Editor.
 
#define MTL_SUB_BEING_EDITED   (1<<2)
 This material OR sub-material texmap is being displayed in the Material Editor.
 
#define MTL_TEX_DISPLAY_ENABLED   (1<<3)
 Viewport display enabled for this material (see MTL_SUB_DISPLAY_ENABLED).
 
#define MTL_MEDIT_BACKGROUND   (1<<8)
 Material has the background shown in Material Editor.
 
#define MTL_MEDIT_BACKLIGHT   (1<<9)
 Material is backlight in the Material Editor.
 
#define MTL_OBJTYPE_SHIFT   10
 
#define MTL_MEDIT_OBJTYPE   (1<<MTL_OBJTYPE_SHIFT)
 Object type displayed in Material Editor.
 
#define MTL_MEDIT_OBJTYPE_MASK   ((1<<MTL_OBJTYPE_SHIFT)|(1<<(MTL_OBJTYPE_SHIFT+1))|(1<<(MTL_OBJTYPE_SHIFT+2)))
 
#define MTL_TILING_SHIFT   13
 
#define MTL_MEDIT_TILING   (1<<MTL_TILING_SHIFT)
 
#define MTL_MEDIT_TILING_MASK   ((1<<MTL_TILING_SHIFT)|(1<<(MTL_TILING_SHIFT+1))|(1<<(MTL_TILING_SHIFT+2)))
 
#define MTL_MEDIT_VIDCHECK   (1<<16)
 
#define MTL_BROWSE_OPEN1   (1<<18)
 For internal use.
 
#define MTL_BROWSE_OPEN2   (1<<19)
 For internal use.
 
#define MTL_SUB_DISPLAY_ENABLED   (1<<20)
 Indicates that texture display is enabled for map or material in this subtree.
 
#define MTL_CLONED   (1<<28)
 Indicates material or texture was created by being cloned from another material or texture.
 
#define MTL_HW_MAT_PRESENT   (1<<29)
 
#define MTL_HW_MAT_ENABLED   (1<<30)
 
#define MTL_WORK_FLAG   (1<<31)
 
#define MTL_DISPLAY_ENABLE_FLAGS   (MTL_TEX_DISPLAY_ENABLED|MTL_SUB_DISPLAY_ENABLED)
 Interactive texture display enabled for THIS mtl base.
 
#define MTL_HW_TEX_ENABLED   (1<<17)
 Indicates that the texture should be part of the realtime shader.
 

Detailed Description

See also
Class MtlBase

Macro Definition Documentation

◆ MTL_IN_SCENE

#define MTL_IN_SCENE   (1<<0)

The material is being used in the scene.

◆ MTL_BEING_EDITED

#define MTL_BEING_EDITED   (1<<1)

The material's parameters are being displayed in the Material Editor.

◆ MTL_SUB_BEING_EDITED

#define MTL_SUB_BEING_EDITED   (1<<2)

This material OR sub-material texmap is being displayed in the Material Editor.

◆ MTL_TEX_DISPLAY_ENABLED

#define MTL_TEX_DISPLAY_ENABLED   (1<<3)

Viewport display enabled for this material (see MTL_SUB_DISPLAY_ENABLED).

◆ MTL_MEDIT_BACKGROUND

#define MTL_MEDIT_BACKGROUND   (1<<8)

Material has the background shown in Material Editor.

◆ MTL_MEDIT_BACKLIGHT

#define MTL_MEDIT_BACKLIGHT   (1<<9)

Material is backlight in the Material Editor.

◆ MTL_OBJTYPE_SHIFT

#define MTL_OBJTYPE_SHIFT   10

◆ MTL_MEDIT_OBJTYPE

#define MTL_MEDIT_OBJTYPE   (1<<MTL_OBJTYPE_SHIFT)

Object type displayed in Material Editor.

◆ MTL_MEDIT_OBJTYPE_MASK

#define MTL_MEDIT_OBJTYPE_MASK   ((1<<MTL_OBJTYPE_SHIFT)|(1<<(MTL_OBJTYPE_SHIFT+1))|(1<<(MTL_OBJTYPE_SHIFT+2)))

◆ MTL_TILING_SHIFT

#define MTL_TILING_SHIFT   13

◆ MTL_MEDIT_TILING

#define MTL_MEDIT_TILING   (1<<MTL_TILING_SHIFT)

◆ MTL_MEDIT_TILING_MASK

#define MTL_MEDIT_TILING_MASK   ((1<<MTL_TILING_SHIFT)|(1<<(MTL_TILING_SHIFT+1))|(1<<(MTL_TILING_SHIFT+2)))

◆ MTL_MEDIT_VIDCHECK

#define MTL_MEDIT_VIDCHECK   (1<<16)

◆ MTL_BROWSE_OPEN1

#define MTL_BROWSE_OPEN1   (1<<18)

For internal use.

◆ MTL_BROWSE_OPEN2

#define MTL_BROWSE_OPEN2   (1<<19)

For internal use.

◆ MTL_SUB_DISPLAY_ENABLED

#define MTL_SUB_DISPLAY_ENABLED   (1<<20)

Indicates that texture display is enabled for map or material in this subtree.

◆ MTL_CLONED

#define MTL_CLONED   (1<<28)

Indicates material or texture was created by being cloned from another material or texture.

◆ MTL_HW_MAT_PRESENT

#define MTL_HW_MAT_PRESENT   (1<<29)

◆ MTL_HW_MAT_ENABLED

#define MTL_HW_MAT_ENABLED   (1<<30)

◆ MTL_WORK_FLAG

#define MTL_WORK_FLAG   (1<<31)

◆ MTL_DISPLAY_ENABLE_FLAGS

#define MTL_DISPLAY_ENABLE_FLAGS   (MTL_TEX_DISPLAY_ENABLED|MTL_SUB_DISPLAY_ENABLED)

Interactive texture display enabled for THIS mtl base.

◆ MTL_HW_TEX_ENABLED

#define MTL_HW_TEX_ENABLED   (1<<17)

Indicates that the texture should be part of the realtime shader.