Ignore:
Timestamp:
06/05/06 23:14:04 (18 years ago)
Author:
mattausch
Message:

added mesh instance support
improved support for occlusion queries + other extensions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/UnigraphicsParser.cpp

    r863 r1001  
    1212#include "Material.h" 
    1313#include "Environment.h" 
     14#include "ResourceManager.h" 
     15 
    1416 
    1517namespace GtpVisibilityPreprocessor { 
     
    6062 
    6163  SceneGraphNode *root = new SceneGraphNode; 
    62   Mesh *currentMesh = new Mesh; 
     64  Mesh *currentMesh = MeshManager::GetSingleton()->CreateResource(); 
    6365 
    6466  int meshGrouping; 
     
    145147        c = cht.find(str); 
    146148        if (currentMesh->mMaterial == NULL) { 
    147           Material *mat = new Material; 
     149                Material *mat = MaterialManager::GetSingleton()->CreateResource(); 
    148150          if (c != cht.end()) { 
    149151            mat->mDiffuseColor = RgbColor((*c).second.x, (*c).second.y, (*c).second.z); 
     
    151153          } 
    152154          else 
    153             *mat = RandomMaterial(); 
    154           currentMesh->mMaterial = mat; 
     155            currentMesh->AssignRandomMaterial(); 
    155156        } 
    156157      } 
Note: See TracChangeset for help on using the changeset viewer.