Changeset 8571 in orxonox.OLD for branches/gui/src/lib/graphics/importer/material.h
- Timestamp:
- Jun 18, 2006, 9:52:32 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/graphics/importer/material.h
r8448 r8571 28 28 virtual ~Material (); 29 29 30 void loadParams(const TiXmlElement* root); 31 30 32 Material& operator=(const Material& material); 31 33 … … 44 46 void setTransparency (float trans); 45 47 void setBlendFunc(GLenum sFactor, GLenum tFactor) { this->sFactor = sFactor; this->tFactor = tFactor; }; 48 void setBlendFuncS(const std::string& sFactor, const std::string& tFactor); 46 49 47 50 const Color& getDiffuseColor() const { return diffuse; }; … … 60 63 static void addTexturePath(const std::string& pathName); 61 64 65 const std::string& blendFuncToString(GLenum blendFunc); 66 GLenum stringToBlendFunc(const std::string& blendFuncString); 67 68 62 69 public: 63 70 static const GLenum glTextureArbs[]; //!< The Texture ARB's 71 72 static const GLenum glBlendFuncParams[]; 73 static const std::string blendFuncNames[]; 64 74 65 75 static unsigned int getMaxTextureUnits();
Note: See TracChangeset
for help on using the changeset viewer.