Changeset 9869 in orxonox.OLD for trunk/src/lib/graphics/importer/material.h
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/material.h
r8761 r9869 24 24 class Material : public BaseObject 25 25 { 26 ObjectListDeclaration(Material); 26 27 public: 27 28 Material (const std::string& mtlName = ""); 28 29 virtual ~Material (); 29 30 31 Material& operator=(const Material& material); 32 30 33 void loadParams(const TiXmlElement* root); 31 32 Material& operator=(const Material& material);33 34 34 35 bool select () const; … … 53 54 // MAPPING // 54 55 void setDiffuseMap(const Texture& texture, unsigned int textureNumber = 0); 55 void setDiffuseMap(const TextureData Pointer& texturePointer, unsigned int textureNumber = 0);56 void setDiffuseMap(const TextureData::Pointer& texturePointer, unsigned int textureNumber = 0); 56 57 void setDiffuseMap(const std::string& dMap, GLenum target = GL_TEXTURE_2D, unsigned int textureNumber = 0); 57 58 void setSDLDiffuseMap(SDL_Surface *surface, GLenum target = GL_TEXTURE_2D, unsigned int textureNumber = 0); … … 65 66 66 67 const Texture& diffuseTexture(unsigned int i = 0) const { return this->textures[i]; }; 67 68 static void addTexturePath(const std::string& pathName);69 68 70 69 static const std::string& blendFuncToString(GLenum blendFunc);
Note: See TracChangeset
for help on using the changeset viewer.