MFMaterial.h File Reference

Provide access to the material system which manages renderer configuration. More...


Data Structures

struct  MFMaterialParameterInfo
 Material parameter information structure. More...
struct  MFMaterialCallbacks
 Material type registration callbacks. 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_Unknown, MFParamType_String, MFParamType_Float, MFParamType_Int,
  MFParamType_Bool, MFParamType_Vector3, MFParamType_Vector4, MFParamType_Matrix,
  MFParamType_Max, MFParamType_ForceInt = 0x7FFFFFFF
}
 Parameter types. More...

Functions

int MFMaterial_AddDefinitionsFile (const char *pName, const char *pFilename)
 Add a material definitions file.
int MFMaterial_AddDefinitionsIni (const char *pName, MFIni *pMatDefs)
 Add a material definitions ini.
void MFMaterial_RemoveDefinitions (const char *pName)
 Remove a material definitions file.
MFMaterialMFMaterial_Create (const char *pName)
 Create a material instance.
int MFMaterial_Destroy (MFMaterial *pMaterial)
 Destroy a material instance.
MFMaterialMFMaterial_Find (const char *pName)
 Find a material.
MFMaterialMFMaterial_GetStockMaterial (MFStockMaterials materialIdentifier)
 Get a pointer to a stock material.
void MFMaterial_SetMaterial (MFMaterial *pMaterial)
 Set the current active material.
MFMaterialMFMaterial_GetCurrent ()
 Get the current active material.
int MFMaterial_GetNumParameters (MFMaterial *pMaterial)
 Get the number of parameters the material exposes.
const char * MFMaterial_GetParameterName (MFMaterial *pMaterial, int parameterIndex)
 Get the name of a parameter.
int MFMaterial_GetParameterIndexFromName (MFMaterial *pMaterial, const char *pParameterName)
 Get the index of a parameter from a parameter name.
int MFMaterial_GetNumParameterArgs (MFMaterial *pMaterial, int parameterIndex)
 Get the number of arguments for a parameter.
MFParamType MFMaterial_GetParameterArgType (MFMaterial *pMaterial, int parameterIndex, int argIndex)
 Get the ParamType for a parameter argument.
void MFMaterial_SetParameter (MFMaterial *pMaterial, int parameterIndex, int argIndex, const void *pValue)
 Set the value of a parameter.
int MFMaterial_GetParameter (MFMaterial *pMaterial, int parameterIndex, int argIndex, void *pValue)
 Get the value of a parameter.
void MFMaterial_SetParameterI (MFMaterial *pMaterial, int parameterIndex, int argIndex, size_t parameter)
 Set the value of a parameter to an integer value.
void MFMaterial_RegisterMaterialType (const char *pName, const MFMaterialCallbacks *pCallbacks)
 Register a new material type.
void MFMaterual_UnregisterMaterialType (const char *pName)
 Unregister a material type.


Detailed Description

Author:
Manu Evans

Generated on Sat Oct 28 16:27:27 2006 for MountFuji Engine by  doxygen 1.4.5