Static Public Member Functions | |
| static void | LuaRegister (lua_State *L) |
| static int | SaveTextureToFile (lua_State *L) |
| string SaveTextureToFile (sTexName,sFilePath) | |
| static int | CloneMaterial (lua_State *L) |
| string CloneMaterial (sOldMatName,sNewMatName=uniquename()) | |
| static int | CreateMaterial (lua_State *L) |
| string CreateMaterial (sMatName=uniquename()) | |
| static int | SetAmbient (lua_State *L) |
| void SetAmbient (sMatName,iTech,iPass,r,g,b) | |
| static int | SetShaderParamByIndex (lua_State *L) |
| static int | SetShaderParamByName (lua_State *L) |
| static int | SetDiffuse (lua_State *L) |
| void SetDiffuse (sMatName,iTech,iPass,r,g,b,a) | |
| static int | SetSceneBlend (lua_State *L) |
| void SetSceneBlend (sMatName,iSceneBlendMode) | |
| static int | SetDepthWriteEnabled (lua_State *L) |
| void SetDepthWriteEnabled (sMatName,iTech,iPass,iSceneBlendMode) | |
| static int | SetAlphaRejection (lua_State *L) |
| void SetAlphaRejection (sMatName,iTech,iPass,compare_method,value) | |
| static int | SetMaterialParam (lua_State *L) |
| void SetMaterialParam (matname,pname,pvalue) | |
| static int | SetHardwareCulling (lua_State *L) |
| static int | SetSoftwareCulling (lua_State *L) |
| static int | SetTextureIsAlpha (lua_State *L) |
| void SetTextureIsAlpha (sMatName,bIsAlpha,iTech=0,iPass=0,iTextureUnit=0) | |
| static int | SetSceneBlending (lua_State *L) |
| void SetSceneBlending (sMatName,mode) | |
| static int | SetTextureAddressingMode (lua_State *L) |
| void SetTextureAddressingMode (sMatName,adressMode,iTech=0,iPass=0,iTextureUnit=0) | |
| static int | SetTextureFiltering (lua_State *L) |
| void SetTextureFiltering (sMatName,filterOption,iTech=0,iPass=0,iTextureUnit=0) | |
| static int | SetTexture (lua_State *L) |
| static int | GetTexture (lua_State *L) |
| static int | SetReceiveShadows (lua_State *L) |
| void SetReceiveShadows (sMatName,bool) | |
Definition at line 68 of file lugre_material_L.cpp.
| static void Lugre::cMaterial_L::LuaRegister | ( | lua_State * | L | ) | [inline, static] |
Definition at line 70 of file lugre_material_L.cpp.
References CloneMaterial(), CreateMaterial(), GetTexture(), RegisterClassConstant, SaveTextureToFile(), SetAlphaRejection(), SetAmbient(), SetDepthWriteEnabled(), SetDiffuse(), SetHardwareCulling(), SetMaterialParam(), SetReceiveShadows(), SetSceneBlend(), SetSceneBlending(), SetShaderParamByIndex(), SetShaderParamByName(), SetSoftwareCulling(), SetTexture(), SetTextureAddressingMode(), SetTextureFiltering(), and SetTextureIsAlpha().
Referenced by Lugre::Material_LuaRegister().
| static int Lugre::cMaterial_L::SaveTextureToFile | ( | lua_State * | L | ) | [inline, static] |
string SaveTextureToFile (sTexName,sFilePath)
Definition at line 127 of file lugre_material_L.cpp.
References Lugre::cOgreWrapper::GetSingleton(), and PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::CloneMaterial | ( | lua_State * | L | ) | [inline, static] |
string CloneMaterial (sOldMatName,sNewMatName=uniquename())
Definition at line 175 of file lugre_material_L.cpp.
References Lugre::cOgreWrapper::GetSingleton(), Lugre::cOgreWrapper::GetUniqueName(), and PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::CreateMaterial | ( | lua_State * | L | ) | [inline, static] |
string CreateMaterial (sMatName=uniquename())
Definition at line 186 of file lugre_material_L.cpp.
References Lugre::cOgreWrapper::GetSingleton(), Lugre::cOgreWrapper::GetUniqueName(), and PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetAmbient | ( | lua_State * | L | ) | [inline, static] |
void SetAmbient (sMatName,iTech,iPass,r,g,b)
Definition at line 194 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetShaderParamByIndex | ( | lua_State * | L | ) | [inline, static] |
see also staticgeom:SetCustomParameter (iParam,x,y,z,w) (iris) see also gfx3D:SetMeshSubEntityCustomParameter void SetShaderParamByIndex (sMatName,iTech,iPass,iParam,x,y,z,w)
Definition at line 212 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetShaderParamByName | ( | lua_State * | L | ) | [inline, static] |
see also staticgeom:SetCustomParameter (iParam,x,y,z,w) (iris) see also gfx3D:SetMeshSubEntityCustomParameter void SetShaderParamByName (sMatName,iTech,iPass,sParam,x,y,z,w)
Definition at line 234 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetDiffuse | ( | lua_State * | L | ) | [inline, static] |
void SetDiffuse (sMatName,iTech,iPass,r,g,b,a)
Definition at line 254 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetSceneBlend | ( | lua_State * | L | ) | [inline, static] |
void SetSceneBlend (sMatName,iSceneBlendMode)
Definition at line 271 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetDepthWriteEnabled | ( | lua_State * | L | ) | [inline, static] |
void SetDepthWriteEnabled (sMatName,iTech,iPass,iSceneBlendMode)
Definition at line 284 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetAlphaRejection | ( | lua_State * | L | ) | [inline, static] |
void SetAlphaRejection (sMatName,iTech,iPass,compare_method,value)
Definition at line 306 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetMaterialParam | ( | lua_State * | L | ) | [inline, static] |
void SetMaterialParam (matname,pname,pvalue)
TODO perhaps valid in the future? / void SetMaterialPassParam (matname,techidx,passidx,pname,pvalue) static int SetMaterialPassParam (lua_State *L) { PROFILE std::string name = (lua_gettop(L) >= 4 && !lua_isnil(L,4)) ? luaL_checkstring(L,4) : ""; std::string value = (lua_gettop(L) >= 5 && !lua_isnil(L,5)) ? luaL_checkstring(L,5) : "";
std::string sMatName = luaL_checkstring(L,1); int iTech = (lua_gettop(L) >= 2 && !lua_isnil(L,2)) ? luaL_checkint(L,2) : 0; int iPass = (lua_gettop(L) >= 3 && !lua_isnil(L,3)) ? luaL_checkint(L,3) : 0; Ogre::MaterialPtr mat = Ogre::MaterialManager::getSingleton().getByName(sMatName); if (mat.isNull()) return 0; Ogre::Pass* mypass = mat->getTechnique(iTech)->getPass(iPass); if (!mypass) return 0; mypass->setParameter(name, value); return 0; }
/ void SetMaterialTechniqueParam (matname,techidx,pname,pvalue) static int SetMaterialTechniqueParam (lua_State *L) { PROFILE std::string name = (lua_gettop(L) >= 3 && !lua_isnil(L,3)) ? luaL_checkstring(L,3) : ""; std::string value = (lua_gettop(L) >= 4 && !lua_isnil(L,4)) ? luaL_checkstring(L,4) : "";
std::string sMatName = luaL_checkstring(L,1); int iTech = (lua_gettop(L) >= 2 && !lua_isnil(L,2)) ? luaL_checkint(L,2) : 0; Ogre::MaterialPtr mat = Ogre::MaterialManager::getSingleton().getByName(sMatName); if (mat.isNull()) return 0; Ogre::Pass* mypass = mat->getTechnique(iTech)->setParameter(name, value); return 0; }
Definition at line 355 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetHardwareCulling | ( | lua_State * | L | ) | [inline, static] |
void SetHardwareCulling (sMatName,iTech,iPass,iCullMode) iCullMode 0=CULL_NONE 1=CULL_CLOCKWISE 2=CULL_ANTICLOCKWISE
Definition at line 368 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetSoftwareCulling | ( | lua_State * | L | ) | [inline, static] |
void SetSoftwareCulling (sMatName,iTech,iPass,iCullMode) iCullMode 0=MANUAL_CULL_NONE 1=MANUAL_CULL_BACK 2=MANUAL_CULL_FRONT
Definition at line 383 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetTextureIsAlpha | ( | lua_State * | L | ) | [inline, static] |
void SetTextureIsAlpha (sMatName,bIsAlpha,iTech=0,iPass=0,iTextureUnit=0)
Definition at line 397 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetSceneBlending | ( | lua_State * | L | ) | [inline, static] |
void SetSceneBlending (sMatName,mode)
Definition at line 413 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetTextureAddressingMode | ( | lua_State * | L | ) | [inline, static] |
void SetTextureAddressingMode (sMatName,adressMode,iTech=0,iPass=0,iTextureUnit=0)
Definition at line 423 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetTextureFiltering | ( | lua_State * | L | ) | [inline, static] |
void SetTextureFiltering (sMatName,filterOption,iTech=0,iPass=0,iTextureUnit=0)
Definition at line 439 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetTexture | ( | lua_State * | L | ) | [inline, static] |
old : CreateTextureUnitState (sMatName,iTech,iPass,sTextureName) void SetTexture (sMatName,sTextureName,iTech=0,iPass=0,iTextureUnit=0)
Definition at line 456 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::GetTexture | ( | lua_State * | L | ) | [inline, static] |
old : CreateTextureUnitState (sMatName,iTech,iPass,sTextureName) texname GetTexture (sMatName,iTech=0,iPass=0,iTextureUnit=0)
Definition at line 474 of file lugre_material_L.cpp.
References PROFILE.
Referenced by LuaRegister().
| static int Lugre::cMaterial_L::SetReceiveShadows | ( | lua_State * | L | ) | [inline, static] |
void SetReceiveShadows (sMatName,bool)
Definition at line 489 of file lugre_material_L.cpp.
References luaL_checkbool, and PROFILE.
Referenced by LuaRegister().
1.5.6