Blender V2.61 - r43446
Classes | Defines | Enumerations | Functions

BL_Material.h File Reference

#include "STR_String.h"
#include "MT_Point2.h"

Go to the source code of this file.

Classes

class  BL_Mapping
class  BL_Material

Defines

#define MAXTEX   8

Enumerations

enum  BL_IdMode {
  DEFAULT_BLENDER = -1, TEXFACE, ONETEX, TWOTEX,
  GREATERTHAN2
}
enum  BL_BlendMode {
  BLEND_MIX = 1, BLEND_ADD, BLEND_SUB, BLEND_MUL,
  BLEND_SCR
}
enum  BL_flag {
  MIPMAP = 1, CALCALPHA = 2, USEALPHA = 4, TEXALPHA = 8,
  TEXNEG = 16, USENEGALPHA = 64
}
enum  BL_ras_mode {
  COLLIDER = 2, ZSORT = 4, ALPHA = 8, USE_LIGHT = 32,
  WIRE = 64, CAST_SHADOW = 128, TEX = 256, TWOSIDED = 512
}
enum  BL_MappingFlag {
  USEENV = 1, USEREFL = 2, USEOBJ = 4, USENORM = 8,
  USEORCO = 16, USEUV = 32, USETANG = 64, DISABLE = 128,
  USECUSTOMUV = 256
}
enum  BL_MappingProj { PROJN = 0, PROJX, PROJY, PROJZ }

Functions

MTexgetImageFromMaterial (Material *mat, int index)
int getNumTexChannels (Material *mat)

Detailed Description

Definition in file BL_Material.h.


Define Documentation

#define MAXTEX   8

max units this will default to users available units to build with more available, just increment this value although the more you add the slower the search time will be. we will go for eight, which should be enough

Definition at line 32 of file BL_Material.h.

Referenced by BL_Texture::ActivateUnit(), ConvertMaterial(), BL_Texture::DisableAllTextures(), DisableForText(), KX_BlenderMaterial::getImage(), BL_Texture::GetMaxUnits(), KX_BlenderMaterial::getTex(), and BL_Material::Initialize().


Enumeration Type Documentation

Enumerator:
BLEND_MIX 
BLEND_ADD 
BLEND_SUB 
BLEND_MUL 
BLEND_SCR 

Definition at line 128 of file BL_Material.h.

enum BL_flag
Enumerator:
MIPMAP 
CALCALPHA 
USEALPHA 
TEXALPHA 
TEXNEG 
USENEGALPHA 

Definition at line 139 of file BL_Material.h.

enum BL_IdMode
Enumerator:
DEFAULT_BLENDER 
TEXFACE 
ONETEX 
TWOTEX 
GREATERTHAN2 

Definition at line 119 of file BL_Material.h.

Enumerator:
USEENV 
USEREFL 
USEOBJ 
USENORM 
USEORCO 
USEUV 
USETANG 
DISABLE 
USECUSTOMUV 

Definition at line 167 of file BL_Material.h.

Enumerator:
PROJN 
PROJX 
PROJY 
PROJZ 

Definition at line 182 of file BL_Material.h.

Enumerator:
COLLIDER 
ZSORT 
ALPHA 
USE_LIGHT 
WIRE 
CAST_SHADOW 
TEX 
TWOSIDED 

Definition at line 151 of file BL_Material.h.


Function Documentation

MTex* getImageFromMaterial ( Material mat,
int  index 
)

Definition at line 13 of file BL_Material.cpp.

References MAX_MTEX, and Material::mtex.

Referenced by ConvertMaterial().

int getNumTexChannels ( Material mat)

Definition at line 23 of file BL_Material.cpp.

References Material::mtex.

Referenced by ConvertMaterial().