houlala
public c v1 · immutable#ifndef __Image__#define __Image__#include <fstream>class Image{ private : int width; int height; int depth; int offset; void * buffer; bool loadPNM(std::ifstream & _file); void clear(); public : Image(); Image(int _w, int _h, int _d); Image(const char * _filename); Image(const Image & _i); ~Image(); bool load(const char * _filename); void display() const; int getWidth() const; int getHeight() const; };#endif