| 86 | } |
| 87 | |
| 88 | bool GuiMaterialCtrl::setMaterial( const String &materialName ) |
| 89 | { |
| 90 | SAFE_DELETE( mMaterialInst ); |
| 91 | |
| 92 | _setMaterial(StringTable->insert(materialName.c_str())); |
| 93 | |
| 94 | if ( getMaterial() != StringTable->EmptyString() && isAwake() ) |
| 95 | mMaterialInst = MATMGR->createMatInstance( getMaterial(), getGFXVertexFormat<GFXVertexPCT>() ); |
| 96 | |
| 97 | return true; |
| 98 | } |
| 99 | |
| 100 | void GuiMaterialCtrl::inspectPostApply() |
| 101 | { |
no test coverage detected