#ifndef IMAGE #define IMAGE #include struct Image { int depth; int width; int height; void* pixels; Image() : pixels(NULL) {} ~Image() { if(pixels != NULL) delete[] (char*)pixels; } void allocate(int size) { pixels = new char[size]; } }; #endif // IMAGE