Ignore:
Timestamp:
06/12/08 01:09:23 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/CHC_revisited/Material.h

    r2751 r2755  
    66{ 
    77 
     8 
    89class RgbColor  
    910{ 
     11 
    1012public: 
     13 
    1114  float r, g, b; 
    1215 
     
    4447{ 
    4548public: 
     49 
    4650  RgbColor mDiffuseColor; 
    4751  RgbColor mSpecularColor; 
    4852  RgbColor mAmbientColor; 
    4953   
    50   Material(): mId(0) 
    51   { 
    52   } 
     54  Material(); 
    5355   
    54   Material(const int id): mId(id) 
    55   { 
    56   } 
     56  Material(const int id); 
    5757 
    58   Material(const RgbColor &color):mDiffuseColor(color), 
    59                                                                   mAmbientColor(color), 
    60                                                                   mSpecularColor(0,0,0), mId(0) 
    61   { 
    62   } 
    63    
    64   friend Material RandomMaterial(); 
    65    
     58  Material(const RgbColor &color); 
    6659  /** Returns unique material id. 
    6760  */ 
    68   int GetId() const 
    69   { 
    70           return mId; 
    71   } 
     61  int GetId() const; 
     62 
     63  friend Material RandomMaterial(); 
    7264 
    7365protected: 
Note: See TracChangeset for help on using the changeset viewer.