/* ========================================================================== * ÀÛ ¼º ÀÚ : À̼ø±Ô * ÀÛ ¼º ÀÏ : 2008.04.29 * ³» ¿ë : * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once #include class cEngineFile; /// TGA ÆÄÀÏ ¸®´õ class cTGAReader : public NiTGAReader { public: NiPixelData* ReadFile( cEngineFile& file, NiPixelData* optDest, bool IsReverseHeader = false ); protected: void LoadRLERow( cEngineFile& file, unsigned char *dest, unsigned int destSize ); void GetColormap( cEngineFile& file ); bool ReadHeader( cEngineFile& file, unsigned int& width, unsigned int& height, NiPixelFormat& pixelFormat, bool& mipmap, unsigned int& faces, bool IsReverseHeader = false ); }; /// DDS ÆÄÀÏ ¸®´õ class cDDSReader : public NiDDSReader { public: cDDSReader(); ~cDDSReader(); NiPixelData* ReadFile( cEngineFile& file, NiPixelData* optDest ); protected: bool ReadHeader( cEngineFile& file, unsigned int& uiWidth, unsigned int& uiHeight, NiPixelFormat& kFormat, bool& bMipmap, unsigned int& uiFaces ); static void Read24Bit( cEngineFile& file, NiPixelData* pkDest, NiPixelFormat kSrcFmt, NiPixelFormat kDestFmt, unsigned int uiMipMapIdx, unsigned int uiFaceIdx ); static void Read32Bit( cEngineFile& file, NiPixelData* pkDest, NiPixelFormat kSrcFmt, NiPixelFormat kDestFmt, unsigned int uiMipMapIdx, unsigned int uiFaceIdx ); static void Read16Bit( cEngineFile& file, NiPixelData* pkDest, NiPixelFormat kSrcFmt, NiPixelFormat kDestFmt, unsigned int uiMipMapIdx, unsigned int uiFaceIdx ); };