MeVisLabToolboxReference
|
Defines and implements a class to store multiple images and draw them via OpenGL. More...
#include <View2DIcons.h>
Public Member Functions | |
View2DIcons () | |
Constructor and destructor. | |
~View2DIcons () | |
void | drawIcon (int idx, float dx1, float dy1, float dx2, float dy2) |
draw the icon at index i | |
bool | addIcon (char *filename) |
add icon from file | |
bool | addIcons (char *filename, int width, int height) |
add icons from file by splitting the file into width x height blocks | |
View2DTexture * | getIcon (int index) |
get icon at index | |
int | numIcons () |
get number of icons | |
void | removeIcon (int index) |
remove an icon | |
void | clearIcons () |
clear all icons |
Defines and implements a class to store multiple images and draw them via OpenGL.
Definition at line 22 of file View2DIcons.h.
View2DIcons::View2DIcons | ( | ) |
Constructor and destructor.
View2DIcons::~View2DIcons | ( | ) |
bool View2DIcons::addIcon | ( | char * | filename | ) |
add icon from file
bool View2DIcons::addIcons | ( | char * | filename, |
int | width, | ||
int | height | ||
) |
add icons from file by splitting the file into width x height blocks
void View2DIcons::clearIcons | ( | ) |
clear all icons
void View2DIcons::drawIcon | ( | int | idx, |
float | dx1, | ||
float | dy1, | ||
float | dx2, | ||
float | dy2 | ||
) |
draw the icon at index i
View2DTexture* View2DIcons::getIcon | ( | int | index | ) |
get icon at index
int View2DIcons::numIcons | ( | ) |
get number of icons
void View2DIcons::removeIcon | ( | int | index | ) |
remove an icon