3ds Max C++ API Reference
ihardwarematerial.h File Reference
#include "baseinterface.h"
#include "geom/color.h"
#include <d3d9.h>
#include <d3dx9.h>

Classes

class  IHardwareMaterial
 
class  IHardwareMaterial2
 Extension of IHardwareMaterial Interface. More...
 
class  IHardwareMaterial3
 Extension of IHardwareMaterial2 Interface. More...
 

Macros

#define IHARDWARE_MATERIAL_INTERFACE_ID   Interface_ID(0x40c926b7, 0x7b3a66b7)
 
#define IHARDWARE_MATERIAL2_INTERFACE_ID   Interface_ID(0x43d32666, 0x3a4467b1)
 
#define IHARDWARE_MATERIAL3_INTERFACE_ID   Interface_ID(0x63d72368, 0xcc4859e3)
 

Enumerations

enum  MapUsageType {
  MAPUSAGE_UNDEFINED = 0 , MAPUSAGE_DIFFUSE = (1 << 0) , MAPUSAGE_OPACITY = (1 << 1) , MAPUSAGE_SPECULAR_COLOR = (1 << 2) ,
  MAPUSAGE_SPECULAR_LEVEL = (1 << 3) , MAPUSAGE_GLOSSINESS = (1 << 4) , MAPUSAGE_BUMP = (1 << 5) , MAPUSAGE_SELF_ILLUM = (1 << 6) ,
  MAPUSAGE_FILTER_COLOR = (1 << 7) , MAPUSAGE_REFLECTION = (1 << 8) , MAPUSAGE_REFRACTION = (1 << 9) , MAPUSAGE_DISPLACEMENT = (1 << 10) ,
  MAPUSAGE_DIFFUSE_OPACITY = MAPUSAGE_DIFFUSE|MAPUSAGE_OPACITY , MAPUSAGE_SPECULAR_COLOR_GLOSS = MAPUSAGE_SPECULAR_COLOR|MAPUSAGE_GLOSSINESS , MAPUSAGE_SPECULAR_LEVEL_GLOSS = MAPUSAGE_SPECULAR_LEVEL|MAPUSAGE_GLOSSINESS , MAPUSAGE_BUMP_GLOSS = MAPUSAGE_BUMP|MAPUSAGE_GLOSSINESS ,
  MAPUSAGE_SELF_ILLUM_GLOSS = MAPUSAGE_SELF_ILLUM|MAPUSAGE_GLOSSINESS , MAPUSAGE_OPACITY_SPLEVEL = MAPUSAGE_OPACITY|MAPUSAGE_SPECULAR_LEVEL , MAPUSAGE_SUPPORT_PROGRAMMABLE_PIPELINE = (1 << 31)
}
 This enum type tells the viewport rendering system the usage of each texture. More...
 

Macro Definition Documentation

◆ IHARDWARE_MATERIAL_INTERFACE_ID

#define IHARDWARE_MATERIAL_INTERFACE_ID   Interface_ID(0x40c926b7, 0x7b3a66b7)

◆ IHARDWARE_MATERIAL2_INTERFACE_ID

#define IHARDWARE_MATERIAL2_INTERFACE_ID   Interface_ID(0x43d32666, 0x3a4467b1)

◆ IHARDWARE_MATERIAL3_INTERFACE_ID

#define IHARDWARE_MATERIAL3_INTERFACE_ID   Interface_ID(0x63d72368, 0xcc4859e3)

Enumeration Type Documentation

◆ MapUsageType

This enum type tells the viewport rendering system the usage of each texture.

This enum type tells the viewport rendering system the usage of each texture while the viewport display is in best quality mode. Currently we don't support MAPUSAGE_BUMP, MAPUSAGE_FILTER_COLOR,MAPUSAGE_REFLECTION, MAPUSAGE_REFRACTION and MAPUSAGE_DISPLACEMENT. NOTE: Set MAPUSAGE_SUPPORT_PROGRAMMABLE_PIPELINE flag at least for texture stage 0, if you want to use the programmable pipeline to render this material, else it will be degraded to fixed pipeline even viewport is in the good or best quality mode.

Enumerator
MAPUSAGE_UNDEFINED 
MAPUSAGE_DIFFUSE 
MAPUSAGE_OPACITY 
MAPUSAGE_SPECULAR_COLOR 
MAPUSAGE_SPECULAR_LEVEL 
MAPUSAGE_GLOSSINESS 
MAPUSAGE_BUMP 
MAPUSAGE_SELF_ILLUM 
MAPUSAGE_FILTER_COLOR 
MAPUSAGE_REFLECTION 
MAPUSAGE_REFRACTION 
MAPUSAGE_DISPLACEMENT 
MAPUSAGE_DIFFUSE_OPACITY 
MAPUSAGE_SPECULAR_COLOR_GLOSS 
MAPUSAGE_SPECULAR_LEVEL_GLOSS 
MAPUSAGE_BUMP_GLOSS 
MAPUSAGE_SELF_ILLUM_GLOSS 
MAPUSAGE_OPACITY_SPLEVEL 
MAPUSAGE_SUPPORT_PROGRAMMABLE_PIPELINE 
41 {
43  MAPUSAGE_DIFFUSE = (1 << 0),
44  MAPUSAGE_OPACITY = (1 << 1),
45  MAPUSAGE_SPECULAR_COLOR = (1 << 2),
46  MAPUSAGE_SPECULAR_LEVEL = (1 << 3),
47  MAPUSAGE_GLOSSINESS = (1 << 4),
48  MAPUSAGE_BUMP = (1 << 5),
49  MAPUSAGE_SELF_ILLUM = (1 << 6),
50  MAPUSAGE_FILTER_COLOR = (1 << 7),
51  MAPUSAGE_REFLECTION = (1 << 8),
52  MAPUSAGE_REFRACTION = (1 << 9),
53  MAPUSAGE_DISPLACEMENT = (1 << 10),
61 };
@ MAPUSAGE_OPACITY_SPLEVEL
Definition: ihardwarematerial.h:59
@ MAPUSAGE_DISPLACEMENT
Definition: ihardwarematerial.h:53
@ MAPUSAGE_DIFFUSE
Definition: ihardwarematerial.h:43
@ MAPUSAGE_GLOSSINESS
Definition: ihardwarematerial.h:47
@ MAPUSAGE_UNDEFINED
Definition: ihardwarematerial.h:42
@ MAPUSAGE_SELF_ILLUM_GLOSS
Definition: ihardwarematerial.h:58
@ MAPUSAGE_OPACITY
Definition: ihardwarematerial.h:44
@ MAPUSAGE_SPECULAR_LEVEL_GLOSS
Definition: ihardwarematerial.h:56
@ MAPUSAGE_SPECULAR_COLOR
Definition: ihardwarematerial.h:45
@ MAPUSAGE_SUPPORT_PROGRAMMABLE_PIPELINE
Definition: ihardwarematerial.h:60
@ MAPUSAGE_REFLECTION
Definition: ihardwarematerial.h:51
@ MAPUSAGE_SELF_ILLUM
Definition: ihardwarematerial.h:49
@ MAPUSAGE_BUMP_GLOSS
Definition: ihardwarematerial.h:57
@ MAPUSAGE_DIFFUSE_OPACITY
Definition: ihardwarematerial.h:54
@ MAPUSAGE_SPECULAR_LEVEL
Definition: ihardwarematerial.h:46
@ MAPUSAGE_REFRACTION
Definition: ihardwarematerial.h:52
@ MAPUSAGE_FILTER_COLOR
Definition: ihardwarematerial.h:50
@ MAPUSAGE_SPECULAR_COLOR_GLOSS
Definition: ihardwarematerial.h:55
@ MAPUSAGE_BUMP
Definition: ihardwarematerial.h:48