Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 5, 2005, 5:50:07 PM (21 years ago)
Author:
bensch
Message:

orxonox/branches/parenting: importer: modularity improvement. Now Textures handle the texture-ID themselves and can be retrieved with the getTexture()-function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/importer/texture.h

    r3343 r3344  
    6464    GLubyte *data;  //!< The Image Data comes here! DANGER: uncompressed data.
    6565  };
     66  Image* pImage;
     67  GLuint texture;
    6668  char* searchTextureInPaths(char* texName) const;
    6769  inline void swap(unsigned char &a, unsigned char &b);
    6870 public:
     71  Texture(void);
     72  ~Texture(void);
    6973
    70   bool loadTexToGL (Image* pImage, GLuint* texture);
     74  GLuint getTexture(void);
     75  bool loadTexToGL (Image* pImage);
    7176
    72   bool loadImage(char* imageName, GLuint* texture);
     77  bool loadImage(char* imageName);
    7378#ifndef HAVE_SDL_SDL_IMAGE_H
    7479
    75   bool loadBMP (char* bmpName, GLuint* texture);
     80  bool loadBMP (char* bmpName);
    7681
    77   bool loadJPG (char* jpgName, GLuint* texture);
     82  bool loadJPG (char* jpgName);
    7883
    7984  /// TGA ///
    8085
    81   bool loadTGA(const char * tgaName, GLuint* texture);
    82   bool loadUncompressedTGA(const char * filename, FILE * fTGA, GLuint* texture);
    83   bool loadCompressedTGA(const char * filename, FILE * fTGA, GLuint* texture);
     86  bool loadTGA(const char * tgaName);
     87  bool loadUncompressedTGA(const char * filename, FILE * fTGA);
     88  bool loadCompressedTGA(const char * filename, FILE * fTGA);
    8489
    8590  bool loadPNG(const char* pngName, GLuint* texture);
Note: See TracChangeset for help on using the changeset viewer.