home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2002 June / Game.EXE_06_2002.iso / Alawar / Lib / Format / PictureFormatManagerForGameExe.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2002-04-25  |  796 b   |  32 lines

  1. #include "PictureFormatManager.h"
  2. #include "PictureFormatBMP.h"
  3. //#include "PictureFormatGIF.h"
  4. //#include "PictureFormatJPEG.h"
  5. #include "PictureFormatTwin.h"
  6. #include <safe_new.h>
  7.  
  8. PictureFormat * PictureFormatManager::create_format(const String & name)
  9. {
  10.     PictureFormatTwin * twinf = new PictureFormatTwin( name );
  11.     if( twinf->colors() )
  12.         return twinf;
  13.     delete twinf; twinf = 0;
  14.  
  15.     PictureFormatBMP * bmpf = new PictureFormatBMP( name );
  16.     if( bmpf->colors() )
  17.         return bmpf;
  18.     delete bmpf; bmpf = 0;
  19.  
  20. /*    PictureFormatGIF * giff = new PictureFormatGIF( name );
  21.     if( giff->colors() )
  22.         return giff;
  23.     delete giff; giff = 0;
  24.  
  25.     PictureFormatJPEG * jpegf = new PictureFormatJPEG( name );
  26.     if( jpegf->colors() )
  27.         return jpegf;
  28.     delete jpegf; jpegf = 0;*/
  29.  
  30.     return 0;
  31. }
  32.