Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 18, 2005, 10:10:26 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: efence compile support, minor changes at animation, and texture has now only support for sdl-image

File:
1 edited

Legend:

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

    r3790 r3863  
    1414#include "debug.h"
    1515
    16 #ifdef HAVE_SDL_IMAGE_H
    1716#include <SDL_image.h>
    18 #else
    19 // IMAGE LIBS //
    20 #ifdef HAVE_JPEGLIB_H
    21 extern "C"{         // This has to be done, because not a c++ lib
    22 #include <jpeglib.h>
    23 }
    24 #endif /* HAVE_JPEGLIB_H */
    25 #ifdef HAVE_PNG_H
    26 #include <png.h>
    27 #endif /* HAVE_PNG_H */
    28 #endif /* HAVE_SDL_IMAGE_H */
    2917
    3018//! A Class, that reads in Textures from different fileformats.
     
    4735  SDL_Surface* map; //!< The map SDL initializes for this element.
    4836  char* searchTextureInPaths(const char* texName) const;
    49   inline void swap(unsigned char &a, unsigned char &b);
     37  void swap(unsigned char &a, unsigned char &b);
    5038 public:
    5139  Texture(void);
     
    5745
    5846  bool loadImage(const char* imageName);
    59 #ifndef HAVE_SDL_IMAGE_H
     47};
    6048
    61   bool loadBMP (char* bmpName);
    62 
    63   bool loadJPG (char* jpgName);
    64 
    65   /// TGA ///
    66 
    67   bool loadTGA(const char * tgaName);
    68   bool loadUncompressedTGA(const char * filename, FILE * fTGA);
    69   bool loadCompressedTGA(const char * filename, FILE * fTGA);
    70 
    71   bool loadPNG(const char* pngName);
    72 #endif
    73 
    74 
    75 };
    7649#endif /* _TEXTURE_H */
Note: See TracChangeset for help on using the changeset viewer.