Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 26, 2005, 3:28:39 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: moved protoclass to folder proto
added protosingleton
added resourceManager
modiefied some stuff to work better

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/importer/texture.cc

    r3622 r3655  
    131131
    132132/**
     133   \brief Constructor for a Texture
     134*/
     135Texture::Texture(const char* imageName)
     136{
     137  this->pImage = new Image;
     138  this->pImage->data = NULL;
     139  this->map = NULL;
     140  this->texture = 0;
     141  this->loadImage(imageName);
     142
     143
     144/**
    133145   \brief Destructor of a Texture
    134146   
     
    149161   \returns pathName+texName if texName was found in the pathList. NULL if the Texture is not found.
    150162*/
    151 char* Texture::searchTextureInPaths(char* texName) const
     163char* Texture::searchTextureInPaths(const char* texName) const
    152164{
    153165  char* tmpName = NULL;
     
    215227
    216228#ifdef HAVE_SDL_SDL_IMAGE_H
    217 bool Texture::loadImage(char* imageName)
     229bool Texture::loadImage(const char* imageName)
    218230{
    219231  if (GraphicsEngine::texturesEnabled)
     
    269281   \todo Checks where to find the Image
    270282*/
    271 bool Texture::loadImage(char* imageName)
     283bool Texture::loadImage(const char* imageName)
    272284{
    273285  if (GraphicsEngine::texturesEnabled)
Note: See TracChangeset for help on using the changeset viewer.