00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __IMAGECOMMON_H__
00013 #define __IMAGECOMMON_H__
00014
00015 #include <wx/image.h>
00016 #include "image.h"
00017 #include "common.h"
00018
00019
00020 namespace VRUT
00021 {
00023 class ImageCommon : public Image
00024 {
00025 protected:
00027 wxImage * image;
00028
00029 public:
00031 ImageCommon();
00033 virtual ~ImageCommon();
00034
00036 virtual bool IsOk() const;
00038 virtual bool Load(const wxString & fname);
00041 virtual GLuint BuildOglTexture() const;
00043 virtual bool HasTransparency() const;
00045 virtual int GetWidth() const;
00047 virtual int GetHeight() const;
00048 };
00049 };
00050
00051
00052 #endif