Ignore:
Timestamp:
06/13/08 18:06:32 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2755 r2756  
    66{ 
    77 
     8class Texture; 
    89 
    910class RgbColor  
     
    5455  Material(); 
    5556   
    56   Material(const int id); 
     57  Material(int id); 
    5758 
    5859  Material(const RgbColor &color); 
     
    6364  friend Material RandomMaterial(); 
    6465 
     66  Texture *GetTexture() const { return mTexture; } 
     67 
     68  void SetTexture(Texture *texture) { mTexture = texture; } 
     69  /** Renders this material. 
     70  */ 
     71  void Render(); 
     72 
    6573protected: 
    6674 
    67         // unique material id 
     75        /** Initialize the material with default values 
     76        */ 
     77        void InitMaterial(); 
     78 
     79        /// unique material id 
    6880        int mId; 
     81        /// the assciated texture 
     82        Texture *mTexture; 
    6983}; 
    7084 
Note: See TracChangeset for help on using the changeset viewer.