ImageFormat_GIF.h
Go to the documentation of this file.00001 00011 #ifndef __ImageFormat_GIF_H__ 00012 #define __ImageFormat_GIF_H__ 00013 00014 // Includes 00015 #include "ImageFormat.h" 00016 00017 // Forward declares 00018 class GifLoader; 00019 00020 00021 // ImageFormat_GIF 00022 class ImageFormat_GIF:public ImageFormat 00023 { 00024 public: 00025 static void Register(); 00026 static bool TestAsset(const Asset& asset); 00027 static ImageFormat* Create(const Asset& asset); 00028 00032 ImageFormat_GIF( 00033 const Asset& asset 00034 ); 00035 00039 virtual ~ImageFormat_GIF(); 00040 00041 virtual int GetWidth(); 00042 00043 virtual int GetHeight(); 00044 00045 virtual int GetCelCount(); 00046 00047 virtual void CopyPixels(unsigned int* destination); 00048 00049 virtual float GetCelDelay(int celIndex); 00050 00051 static void Save(const Filename& filename, int width, int height, void* data); 00052 private: 00053 GifLoader* image_; 00054 }; 00055 00056 #endif /* __ImageFormat_GIF_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
