Numworks Epsilon  1.4.1
Graphing Calculator Operating System
framebuffer.h
Go to the documentation of this file.
1 #ifndef KANDINSKY_FRAMEBUFFER_H
2 #define KANDINSKY_FRAMEBUFFER_H
3 
4 #include <kandinsky/color.h>
5 #include <kandinsky/rect.h>
6 
7 class KDFrameBuffer {
8 public:
9  KDFrameBuffer(KDColor * pixels, KDSize size);
10  void pushRect(KDRect rect, const KDColor * pixels);
11  void pushRectUniform(KDRect rect, KDColor color);
12  void pullRect(KDRect rect, KDColor * pixels);
13  KDRect bounds();
14 private:
15  KDColor * pixelAddress(KDPoint p) const;
16  KDColor * m_pixels;
17  KDSize m_size;
18 };
19 
20 #endif
void pushRectUniform(KDRect rect, KDColor color)
Definition: framebuffer.cpp:29
KDFrameBuffer(KDColor *pixels, KDSize size)
Definition: framebuffer.cpp:4
KDRect bounds()
Definition: framebuffer.cpp:10
Definition: point.h:6
Definition: size.h:6
void pushRect(KDRect rect, const KDColor *pixels)
Definition: framebuffer.cpp:18
void pullRect(KDRect rect, KDColor *pixels)
Definition: framebuffer.cpp:45
Definition: rect.h:26
Definition: color.h:6