Public Structures & Classes
This struct provides a way of wrapping all of the image infomation into one place
Image
Definition
- struct Image
- Image();
- Image(const Image &rhs);
- ~Image();
- unsigned char * getDataPtr(int imgnumber = 0, int mipmaplvl = 0);
- int getWidth(int mipmaplvl = 0);
- int getHeight(int mipmaplvl = 0);
- int getDepth(int mipmaplvl = 0);
- int getSize(int mipmaplvl = 0);
- int getNumMipMaps();
- int getNumImages();
- int getColourDepth();
- ImgFormat getFormat(); };
{
Other Details / Notes
- Class is virtual so a type Image can never be instanced by the end user. Thus only pointers can be used.
LoaderImgData
Definition
-
struct LoaderImgData
- LoaderImgData();
- ~LoaderImgData();
- int width;
- int height;
- int depth;
- int size;
- int numMipMaps;
- int numImages;
- int colourdepth;
- ImgFormat format;
- bool xflip;
- bool yflip; };
{
Other Details / Notes
- Used by the Filters to return infomation to the main loading routine.
- The boolean variables xflip and yflip should be set to true if the data needs to be flipped in the x or y axis to normalise the data with regards to other loaded formats.