CS488 PA6
PPMFrameBuffer.h
1 #ifndef edu_jmu_cs_PPMFrameBuffer_h
2 #define edu_jmu_cs_PPMFrameBuffer_h
3 
4 #include "FrameBuffer.h"
5 #include "Color.h"
6 
10 class PPMFrameBuffer: public FrameBuffer {
11  public:
18  PPMFrameBuffer(int width, int height);
19 
24 
25  virtual void clear(const Color& color);
26 
27  virtual int getHeight() const;
28 
29  virtual int getWidth() const;
30 
31  virtual void setPixel(int x, int y, const Color& color);
32 
33  virtual void show();
34 
35  private:
40 };
41 
42 #endif
virtual void setPixel(int x, int y, const Color &color)
Definition: PPMFrameBuffer.cpp:50
Definition: FrameBuffer.h:13
virtual int getHeight() const
Definition: PPMFrameBuffer.cpp:40
Definition: Color.h:7
virtual void clear(const Color &color)
Definition: PPMFrameBuffer.cpp:29
int height
Definition: FrameBuffer.h:54
~PPMFrameBuffer()
Definition: PPMFrameBuffer.cpp:23
virtual int getWidth() const
Definition: PPMFrameBuffer.cpp:45
Color ** pixel
Definition: PPMFrameBuffer.h:39
int width
Definition: FrameBuffer.h:59
PPMFrameBuffer(int width, int height)
Definition: PPMFrameBuffer.cpp:5
virtual void show()
Definition: PPMFrameBuffer.cpp:59
Definition: PPMFrameBuffer.h:10