Changeset 8376 in orxonox.OLD for trunk/src/lib/graphics/importer/material.h
- Timestamp:
- Jun 14, 2006, 12:13:16 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/material.h
r8370 r8376 17 17 #include <vector> 18 18 #include "texture.h" 19 #include "color.h" 19 20 20 21 // FORWARD DECLARATIONS // … … 35 36 void setIllum (int illum); 36 37 int getIllumModel() const { return this->illumModel; }; 38 37 39 void setDiffuse (float r, float g, float b); 38 40 void setAmbient (float r, float g, float b); … … 42 44 void setBlendFunc(GLenum sFactor, GLenum tFactor) { this->sFactor = sFactor; this->tFactor = tFactor; }; 43 45 44 void getDiffuseColor(float& r, float& g, float& b) const { r = diffuse[0], g = diffuse[1], b = diffuse[2]; }46 const Color& getDiffuseColor() const { return diffuse; }; 45 47 46 48 // MAPPING // … … 66 68 67 69 int illumModel; //!< The IlluminationModel is either flat or smooth. 68 float diffuse [4]; //!< The diffuse color of the Material.69 float ambient [4];//!< The ambient color of the Material.70 float specular [4];//!< The specular color of the Material.70 Color diffuse; //!< The diffuse color of the Material. (also transparency.) 71 Color ambient; //!< The ambient color of the Material. 72 Color specular; //!< The specular color of the Material. 71 73 float shininess; //!< The shininess of the Material. 72 float transparency; //!< The transperency of the Material.73 74 GLenum sFactor; //!< The Blending Factor for the Source. 74 75 GLenum tFactor; //!< The Blending Factor for the Destination.
Note: See TracChangeset
for help on using the changeset viewer.