GlobeEngine
ge::Image Class Reference

#include <Image.h>

Public Member Functions

 Image ()
 
 ~Image ()
 
void clear ()
 
void create ()
 
void load (std::string _filename, bool _remoteAccess=false)
 
void loadWithProperties (std::string _filename, vmml::Vector2i _extent, short _bitsPerPixel, bool _remoteAccess=false)
 
bool isValid ()
 
size_t getBitsPerPixel ()
 

Public Attributes

union {
   float *   alpha
 
   unsigned short *   alpha16
 
   unsigned char *   alpha8
 
   unsigned char *   rgba
 
   unsigned char *   rgb
 
   void *   raw
 
data
 
GLint internal_format
 
GLenum pixel_format
 
GLenum data_type
 
size_t width
 
size_t height
 
bool valid
 

Constructor & Destructor Documentation

ge::Image::Image ( )
ge::Image::~Image ( )

Member Function Documentation

void ge::Image::clear ( )
void ge::Image::create ( )
size_t ge::Image::getBitsPerPixel ( )
bool ge::Image::isValid ( )
void ge::Image::load ( std::string  _filename,
bool  _remoteAccess = false 
)
void ge::Image::loadWithProperties ( std::string  _filename,
vmml::Vector2i  _extent,
short  _bitsPerPixel,
bool  _remoteAccess = false 
)

Member Data Documentation

float* ge::Image::alpha
unsigned short* ge::Image::alpha16
unsigned char* ge::Image::alpha8
union { ... } ge::Image::data
GLenum ge::Image::data_type
size_t ge::Image::height
GLint ge::Image::internal_format
GLenum ge::Image::pixel_format
void* ge::Image::raw
unsigned char* ge::Image::rgb
unsigned char* ge::Image::rgba
bool ge::Image::valid
size_t ge::Image::width

The documentation for this class was generated from the following files: