26 lines
338 B
C++
26 lines
338 B
C++
#ifndef _PPMPARSER_H_
|
|
#define _PPMPARSER_H_
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class PPM {
|
|
private:
|
|
void init(std::string fileName);
|
|
|
|
RGB** matrix;
|
|
|
|
public:
|
|
PPM();
|
|
PPM(char* fileName);
|
|
|
|
void readIn(char* fileName);
|
|
|
|
RGB getAt(int x, int y);
|
|
|
|
};
|
|
|
|
|
|
#endif
|