CS488 PA6
FrameBuffer.h
1 #ifndef edu_jmu_cs_FrameBuffer_h
2 #define edu_jmu_cs_FrameBuffer_h
3 
4 #include "Color.h"
5 
13 class FrameBuffer {
14  public:
20  virtual void clear(const Color& color) = 0;
21 
27  virtual int getHeight() const = 0;
28 
34  virtual int getWidth() const = 0;
35 
43  virtual void setPixel(int x, int y, const Color& color) = 0;
44 
48  virtual void show() = 0;
49 
50  protected:
54  int height;
55 
59  int width;
60 
64  int xMax;
65 
69  int xMin;
70 
74  int yMax;
75 
79  int yMin;
80 };
81 
82 #endif
virtual void clear(const Color &color)=0
Definition: FrameBuffer.cpp:24
Definition: FrameBuffer.h:13
int xMax
Definition: FrameBuffer.h:64
int yMax
Definition: FrameBuffer.h:74
int yMin
Definition: FrameBuffer.h:79
Definition: Color.h:7
int xMin
Definition: FrameBuffer.h:69
int height
Definition: FrameBuffer.h:54
virtual int getWidth() const =0
Definition: FrameBuffer.cpp:36
virtual int getHeight() const =0
Definition: FrameBuffer.cpp:31
int width
Definition: FrameBuffer.h:59
virtual void show()=0
Definition: FrameBuffer.cpp:56
virtual void setPixel(int x, int y, const Color &color)=0
Definition: FrameBuffer.cpp:46