CS488 PA8
ZBuffer.h
1 #ifndef edu_jmu_cs_ZBuffer_h
2 #define edu_jmu_cs_ZBuffer_h
3 
4 #include <math.h>
5 
11 class ZBuffer {
12  private:
16  double** buffer;
17 
21  int height;
22 
26  int width;
27 
31  int xMax;
32 
36  int xMin;
37 
41  int yMax;
42 
46  int yMin;
47 
48 
49  public:
56  ZBuffer(int width, int height);
57 
58 
62  ~ZBuffer();
63 
67  void clear();
68 
76  double getPixel(int x, int y);
77 
85  void setPixel(int x, int y, double z);
86 };
87 
88 #endif
void setPixel(int x, int y, double z)
Definition: ZBuffer.cpp:44
ZBuffer(int width, int height)
Definition: ZBuffer.cpp:4
double getPixel(int x, int y)
Definition: ZBuffer.cpp:33
int yMin
Definition: ZBuffer.h:46
double ** buffer
Definition: ZBuffer.h:16
int yMax
Definition: ZBuffer.h:41
int width
Definition: ZBuffer.h:26
int height
Definition: ZBuffer.h:21
void clear()
Definition: ZBuffer.cpp:24
Definition: ZBuffer.h:11
int xMax
Definition: ZBuffer.h:31
~ZBuffer()
Definition: ZBuffer.cpp:18
int xMin
Definition: ZBuffer.h:36