Mount Fuji Engine  0.8b
Data Structures | Enumerations | Functions
Material Interface

Data Structures

struct  MFMaterialParameterInfo
 Material parameter information structure. More...
 
struct  MFMaterialCallbacks
 Material type registration callbacks. More...
 
struct  MFMaterialType
 Material type. More...
 
struct  MFMaterial
 Represents a Fuji Material. More...
 

Enumerations

enum  MFStockMaterials {
  MFMat_White, MFMat_Unavailable, MFMat_SysLogoSmall, MFMat_SysLogoLarge,
  MFMat_USB, MFMat_Connected, MFMat_Disconnected, MFMat_Power,
  MFMat_Charging, MFMat_Max, MFMat_ForceInt = 0x7FFFFFFF
}
 Stock materials. More...
 
enum  MFParamType {
  MFParamType_None, MFParamType_Constant, MFParamType_String, MFParamType_Float,
  MFParamType_Int, MFParamType_Enum, MFParamType_Bool, MFParamType_Vector3,
  MFParamType_Vector4, MFParamType_Colour, MFParamType_Matrix, MFParamType_Max,
  MFParamType_ForceInt = 0x7FFFFFFF
}
 Parameter types. More...
 

Functions

MF_API int MFMaterial_AddDefinitionsFile (const char *pName, const char *pFilename)
 Add a material definitions file. More...
 
MF_API int MFMaterial_AddDefinitionsIni (const char *pName, MFIni *pMatDefs)
 Add a material definitions ini. More...
 
MF_API void MFMaterial_RemoveDefinitions (const char *pName)
 Remove a material definitions file. More...
 
MF_API MFMaterialMFMaterial_Create (const char *pName)
 Create a material instance. More...
 
MF_API int MFMaterial_Release (MFMaterial *pMaterial)
 Release an MFMaterial instance. More...
 
MF_API MFMaterialMFMaterial_Find (const char *pName)
 Find a material. More...
 
MF_API MFMaterialMFMaterial_GetStockMaterial (MFStockMaterials materialIdentifier)
 Get a pointer to a stock material. More...
 
MF_API void MFMaterial_SetMaterial (const MFMaterial *pMaterial)
 Set the current active material. More...
 
MF_API MFMaterialMFMaterial_GetCurrent ()
 Get the current active material. More...
 
MF_API const char * MFMaterial_GetMaterialName (MFMaterial *pMaterial)
 Get a materials name. More...
 
MF_API MFStateBlockMFMaterial_GetMaterialStateBlock (MFMaterial *pMaterial)
 Get a materials state block. More...
 
MF_API int MFMaterial_GetNumParameters (MFMaterial *pMaterial)
 Get the number of parameters the material exposes. More...
 
MF_API const char * MFMaterial_GetParameterName (MFMaterial *pMaterial, int parameterIndex)
 Get the name of a parameter. More...
 
MF_API int MFMaterial_GetParameterIndexFromName (MFMaterial *pMaterial, const char *pParameterName)
 Get the index of a parameter from a parameter name. More...
 
MF_API MFMaterialParameterInfoMFMaterial_GetParameterInfo (MFMaterial *pMaterial, int parameterIndex)
 Get parameter info by name. More...
 
MF_API MFMaterialParameterInfoMFMaterial_GetParameterInfoFromName (MFMaterial *pMaterial, const char *pParameterName)
 Get parameter info by name. More...
 
MF_API uintp MFMaterial_GetParameter (MFMaterial *pMaterial, int parameterIndex, int argIndex, void *pValue=NULL)
 Get the value of a parameter. More...
 
uintp MFMaterial_GetParameterI (MFMaterial *pMaterial, int parameterIndex, int argIndex)
 Get the value of an integer parameter. More...
 
float MFMaterial_GetParameterF (MFMaterial *pMaterial, int parameterIndex, int argIndex)
 Get the value of a float parameter. More...
 
int MFMaterial_GetParameterV (MFMaterial *pMaterial, int parameterIndex, int argIndex, MFVector *pVector)
 Get the value of a vector parameter. More...
 
int MFMaterial_GetParameterM (MFMaterial *pMaterial, int parameterIndex, int argIndex, MFMatrix *pMatrix)
 Get the value of a matrix parameter. More...
 
MFTextureMFMaterial_GetParameterT (MFMaterial *pMaterial, int parameterIndex, int argIndex)
 Get the value of a texture parameter. More...
 
MF_API void MFMaterial_SetParameter (MFMaterial *pMaterial, int parameterIndex, int argIndex, uintp value)
 Set the value of a parameter. More...
 
void MFMaterial_SetParameterI (MFMaterial *pMaterial, int parameterIndex, int argIndex, uintp value)
 Set the value of an integer parameter. More...
 
void MFMaterial_SetParameterF (MFMaterial *pMaterial, int parameterIndex, int argIndex, float value)
 Set the value of a float parameter. More...
 
void MFMaterial_SetParameterV (MFMaterial *pMaterial, int parameterIndex, int argIndex, const MFVector &vector)
 Set the value of a vector parameter. More...
 
void MFMaterial_SetParameterM (MFMaterial *pMaterial, int parameterIndex, int argIndex, const MFMatrix &matrix)
 Set the value of a matrix parameter. More...
 
void MFMaterial_SetParameterT (MFMaterial *pMaterial, int parameterIndex, int argIndex, const MFTexture *pTexture)
 Set the value of a texture parameter. More...
 
void MFMaterial_SetParameterS (MFMaterial *pMaterial, int parameterIndex, int argIndex, const char *pString)
 Set the value of a string parameter. More...
 
MF_API void MFMaterial_RegisterMaterialType (const char *pName, const MFMaterialCallbacks *pCallbacks, size_t instanceDataSize)
 Register a new material type. More...
 
MF_API void MFMaterial_UnregisterMaterialType (const char *pName)
 Unregister a material type. More...
 

Detailed Description