Changeset 9718 in orxonox.OLD for branches/new_class_id/src/lib/graphics/importer
- Timestamp:
- Sep 1, 2006, 11:56:54 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/graphics/importer
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/graphics/importer/material.cc
r9715 r9718 324 324 * @param textureNumber The Texture-Number from 0 to GL_MAX_TEXTURE_UNITS 325 325 */ 326 void Material::setDiffuseMap(const TextureData Pointer& textureDataPointer, unsigned int textureNumber)326 void Material::setDiffuseMap(const TextureData::Pointer& textureDataPointer, unsigned int textureNumber) 327 327 { 328 328 assert(textureNumber < Material::getMaxTextureUnits()); -
branches/new_class_id/src/lib/graphics/importer/material.h
r9715 r9718 54 54 // MAPPING // 55 55 void setDiffuseMap(const Texture& texture, unsigned int textureNumber = 0); 56 void setDiffuseMap(const TextureData Pointer& texturePointer, unsigned int textureNumber = 0);56 void setDiffuseMap(const TextureData::Pointer& texturePointer, unsigned int textureNumber = 0); 57 57 void setDiffuseMap(const std::string& dMap, GLenum target = GL_TEXTURE_2D, unsigned int textureNumber = 0); 58 58 void setSDLDiffuseMap(SDL_Surface *surface, GLenum target = GL_TEXTURE_2D, unsigned int textureNumber = 0); -
branches/new_class_id/src/lib/graphics/importer/texture.cc
r9715 r9718 151 151 this->registerObject(this, Texture::_objectList); 152 152 153 this->data = TextureData Pointer(new TextureData());153 this->data = TextureData::Pointer(new TextureData()); 154 154 155 155 this->priority = 0.5; … … 176 176 } 177 177 178 Texture& Texture::operator=(const TextureData Pointer& textureDataPointer)178 Texture& Texture::operator=(const TextureData::Pointer& textureDataPointer) 179 179 { 180 180 this->data = textureDataPointer; -
branches/new_class_id/src/lib/graphics/importer/texture.h
r9715 r9718 29 29 30 30 Texture& operator=(const Texture& texture); 31 Texture& operator=(const TextureData Pointer& textureDataPointer);31 Texture& operator=(const TextureData::Pointer& textureDataPointer); 32 32 33 33 virtual ~Texture(); … … 63 63 64 64 private: 65 TextureData Pointerdata; //!< The TextureData65 TextureData::Pointer data; //!< The TextureData 66 66 GLclampf priority; //!< the priority of the current texture (used for garphics cards with limited mem) 67 67 -
branches/new_class_id/src/lib/graphics/importer/texture_data.h
r8761 r9718 18 18 class TextureData 19 19 { 20 public: 21 typedef CountPointer<TextureData> Pointer; 20 22 public: 21 23 TextureData(); … … 43 45 }; 44 46 45 typedef CountPointer<TextureData> TextureDataPointer;46 47 47 #endif /* _TEXTURE_DATA_H */
Note: See TracChangeset
for help on using the changeset viewer.