#include <image.h>

Public Member Functions | |
| Image () | |
| Class constructor. | |
| virtual | ~Image () |
| Class destructor. | |
| virtual bool | IsOk () const =0 |
| Is image properly loaded? | |
| const wxFileName * | GetFilename () const |
| Get filename. | |
| virtual bool | Load (const wxString &fname) |
| Load image data from file. | |
| virtual GLuint | BuildOglTexture () const =0 |
| virtual bool | HasTransparency () const =0 |
Get true if image has alpha channel. | |
| virtual int | GetWidth () const =0 |
| Get the widht of the image. | |
| virtual int | GetHeight () const =0 |
| Get the height of the image. | |
Protected Attributes | |
| wxFileName | filename |
| Path to file with image data. | |
Definition at line 23 of file image.h.
| virtual VRUT::Image::~Image | ( | ) | [inline, virtual] |
| virtual bool VRUT::Image::IsOk | ( | ) | const [pure virtual] |
| const wxFileName* VRUT::Image::GetFilename | ( | ) | const [inline] |
| virtual bool VRUT::Image::Load | ( | const wxString & | fname | ) | [inline, virtual] |
Load image data from file.
Reimplemented in VRUT::ImageCommon, and VRUT::ImageDDS.
Definition at line 43 of file image.h.
00044 { 00045 if (wxFileName::FileExists(fname)) 00046 { 00047 filename.Assign(fname); 00048 return true; 00049 } 00050 return false; 00051 }
| virtual GLuint VRUT::Image::BuildOglTexture | ( | ) | const [pure virtual] |
Build and bind OpenGL texture from image in CURRENT OpenGL context, doesn't store the new ID
GL_ID_NONE if failed Implemented in VRUT::ImageCommon, and VRUT::ImageDDS.
| virtual bool VRUT::Image::HasTransparency | ( | ) | const [pure virtual] |
| virtual int VRUT::Image::GetWidth | ( | ) | const [pure virtual] |
| virtual int VRUT::Image::GetHeight | ( | ) | const [pure virtual] |
wxFileName VRUT::Image::filename [protected] |
1.5.5