9 #ifndef GlobeEngine_Image_h
10 #define GlobeEngine_Image_h
12 #include "OpenGL_Includes.h"
14 #include <vmmlib/vector.hpp>
34 void load(std::string _filename,
bool _remoteAccess =
false);
35 void loadWithProperties(std::string _filename, vmml::Vector2i _extent,
short _bitsPerPixel,
bool _remoteAccess =
false);
40 void clampToZerof(
double _minValue);
41 void clampToZeros(
unsigned short _minValue);
65 void loadImageWithFreeImage(std::string _filename);
66 void loadBinaryHeightImage(std::string _filename, vmml::Vector2i _extent,
short _bitsPerPixel);
GLenum data_type
Definition: Image.h:58
float * alpha
Definition: Image.h:48
~Image()
Definition: Image.cpp:37
size_t height
Definition: Image.h:61
unsigned short * alpha16
Definition: Image.h:49
GLenum pixel_format
Definition: Image.h:57
bool valid
Definition: Image.h:63
unsigned char * rgba
Definition: Image.h:51
void clear()
Definition: Image.cpp:43
size_t width
Definition: Image.h:60
size_t getBitsPerPixel()
Definition: Image.cpp:410
unsigned char * rgb
Definition: Image.h:52
void load(std::string _filename, bool _remoteAccess=false)
Definition: Image.cpp:60
unsigned char * alpha8
Definition: Image.h:50
void create()
Definition: Image.cpp:55
Definition: AvalancheTrainingSimulationEngine.h:28
Image()
Definition: Image.cpp:32
bool isValid()
Definition: Image.cpp:414
void * raw
Definition: Image.h:53
void loadWithProperties(std::string _filename, vmml::Vector2i _extent, short _bitsPerPixel, bool _remoteAccess=false)
Definition: Image.cpp:89
GLint internal_format
Definition: Image.h:56