/[pcsx2_0.9.7]/branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/imagtga.h
ViewVC logotype

Annotation of /branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/imagtga.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (hide annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (9 years, 9 months ago) by william
Original Path: trunk/3rdparty/wxWidgets/include/wx/imagtga.h
File MIME type: text/plain
File size: 1327 byte(s)
committing r3113 initial commit again...
1 william 31 /////////////////////////////////////////////////////////////////////////////
2     // Name: wx/imagtga.h
3     // Purpose: wxImage TGA handler
4     // Author: Seth Jackson
5     // RCS-ID: $Id: imagtga.h 43843 2006-12-07 05:44:44Z PC $
6     // Copyright: (c) 2005 Seth Jackson
7     // Licence: wxWindows licence
8     /////////////////////////////////////////////////////////////////////////////
9    
10     #ifndef _WX_IMAGTGA_H_
11     #define _WX_IMAGTGA_H_
12    
13     #include "wx/image.h"
14    
15     //-----------------------------------------------------------------------------
16     // wxTGAHandler
17     //-----------------------------------------------------------------------------
18    
19     #if wxUSE_TGA
20    
21     class WXDLLEXPORT wxTGAHandler : public wxImageHandler
22     {
23     public:
24     wxTGAHandler()
25     {
26     m_name = wxT("TGA file");
27     m_extension = wxT("tga");
28     m_type = wxBITMAP_TYPE_TGA;
29     m_mime = wxT("image/tga");
30     }
31    
32     #if wxUSE_STREAMS
33     virtual bool LoadFile(wxImage* image, wxInputStream& stream,
34     bool verbose = true, int index = -1);
35     virtual bool SaveFile(wxImage* image, wxOutputStream& stream,
36     bool verbose = true);
37     protected:
38     virtual bool DoCanRead(wxInputStream& stream);
39     #endif // wxUSE_STREAMS
40    
41     DECLARE_DYNAMIC_CLASS(wxTGAHandler)
42     };
43    
44     #endif // wxUSE_TGA
45    
46     #endif // _WX_IMAGTGA_H_

  ViewVC Help
Powered by ViewVC 1.1.22