Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 1, 2006, 11:56:54 PM (18 years ago)
Author:
bensch
Message:

more thoughts on Resources, and soon going to adapt… i think i've got a clue :)

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  
    324324 * @param textureNumber The Texture-Number from 0 to GL_MAX_TEXTURE_UNITS
    325325 */
    326 void Material::setDiffuseMap(const TextureDataPointer& textureDataPointer, unsigned int textureNumber)
     326void Material::setDiffuseMap(const TextureData::Pointer& textureDataPointer, unsigned int textureNumber)
    327327{
    328328  assert(textureNumber < Material::getMaxTextureUnits());
  • branches/new_class_id/src/lib/graphics/importer/material.h

    r9715 r9718  
    5454  // MAPPING //
    5555  void setDiffuseMap(const Texture& texture, unsigned int textureNumber = 0);
    56   void setDiffuseMap(const TextureDataPointer& texturePointer, unsigned int textureNumber = 0);
     56  void setDiffuseMap(const TextureData::Pointer& texturePointer, unsigned int textureNumber = 0);
    5757  void setDiffuseMap(const std::string& dMap, GLenum target = GL_TEXTURE_2D, unsigned int textureNumber = 0);
    5858  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  
    151151  this->registerObject(this, Texture::_objectList);
    152152
    153   this->data = TextureDataPointer(new TextureData());
     153  this->data = TextureData::Pointer(new TextureData());
    154154
    155155  this->priority = 0.5;
     
    176176}
    177177
    178 Texture& Texture::operator=(const TextureDataPointer& textureDataPointer)
     178Texture& Texture::operator=(const TextureData::Pointer& textureDataPointer)
    179179{
    180180  this->data = textureDataPointer;
  • branches/new_class_id/src/lib/graphics/importer/texture.h

    r9715 r9718  
    2929
    3030  Texture& operator=(const Texture& texture);
    31   Texture& operator=(const TextureDataPointer& textureDataPointer);
     31  Texture& operator=(const TextureData::Pointer& textureDataPointer);
    3232
    3333  virtual ~Texture();
     
    6363
    6464private:
    65   TextureDataPointer            data;               //!< The TextureData
     65  TextureData::Pointer          data;               //!< The TextureData
    6666  GLclampf                      priority;           //!< the priority of the current texture (used for garphics cards with limited mem)
    6767
  • branches/new_class_id/src/lib/graphics/importer/texture_data.h

    r8761 r9718  
    1818class TextureData
    1919{
     20  public:
     21    typedef CountPointer<TextureData> Pointer;
    2022  public:
    2123    TextureData();
     
    4345};
    4446
    45 typedef CountPointer<TextureData> TextureDataPointer;
    46 
    4747#endif /* _TEXTURE_DATA_H */
Note: See TracChangeset for help on using the changeset viewer.