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/Material.h

    r860 r1001  
    3333  RgbColor mAmbientColor; 
    3434   
    35   Material()  
     35  Material(): mId(0) 
    3636  { 
    3737  } 
    3838   
     39  Material(const int id): mId(id) 
     40  { 
     41  } 
     42 
    3943  Material(const RgbColor &color):mDiffuseColor(color), 
    4044                                                                  mAmbientColor(color), 
    41                                                                   mSpecularColor(0,0,0) 
     45                                                                  mSpecularColor(0,0,0), mId(0) 
    4246  { 
    4347  } 
     
    4549  friend Material RandomMaterial(); 
    4650   
     51  /** Returns unique material id. 
     52  */ 
     53  int GetId() const 
     54  { 
     55          return mId; 
     56  } 
     57 
     58protected: 
     59 
     60        // unique material id 
     61        int mId; 
    4762}; 
    4863 
Note: See TracChangeset for help on using the changeset viewer.