- Timestamp:
- 06/05/06 23:14:04 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/UnigraphicsParser.cpp
r863 r1001 12 12 #include "Material.h" 13 13 #include "Environment.h" 14 #include "ResourceManager.h" 15 14 16 15 17 namespace GtpVisibilityPreprocessor { … … 60 62 61 63 SceneGraphNode *root = new SceneGraphNode; 62 Mesh *currentMesh = new Mesh;64 Mesh *currentMesh = MeshManager::GetSingleton()->CreateResource(); 63 65 64 66 int meshGrouping; … … 145 147 c = cht.find(str); 146 148 if (currentMesh->mMaterial == NULL) { 147 Material *mat = new Material;149 Material *mat = MaterialManager::GetSingleton()->CreateResource(); 148 150 if (c != cht.end()) { 149 151 mat->mDiffuseColor = RgbColor((*c).second.x, (*c).second.y, (*c).second.z); … … 151 153 } 152 154 else 153 *mat = RandomMaterial(); 154 currentMesh->mMaterial = mat; 155 currentMesh->AssignRandomMaterial(); 155 156 } 156 157 }
Note: See TracChangeset
for help on using the changeset viewer.