Numworks Epsilon  1.4.1
Graphing Calculator Operating System
framebuffer_context.cpp
Go to the documentation of this file.
2 
4  KDContext(KDPointZero, frameBuffer->bounds()),
5  m_frameBuffer(frameBuffer)
6 {
7 }
8 
9 void KDFrameBufferContext::pushRect(KDRect rect, const KDColor * pixels) {
10  m_frameBuffer->pushRect(rect, pixels);
11 }
12 
14  m_frameBuffer->pushRectUniform(rect, color);
15 }
16 
18  m_frameBuffer->pullRect(rect, pixels);
19 }
void pushRectUniform(KDRect rect, KDColor color)
Definition: framebuffer.cpp:29
constexpr KDPoint KDPointZero
Definition: point.h:25
KDFrameBufferContext(KDFrameBuffer *frameBuffer)
void pushRect(KDRect, const KDColor *pixels) override
void pushRect(KDRect rect, const KDColor *pixels)
Definition: framebuffer.cpp:18
void pullRect(KDRect rect, KDColor *pixels)
Definition: framebuffer.cpp:45
void pushRectUniform(KDRect rect, KDColor color) override
Definition: rect.h:26
void pullRect(KDRect rect, KDColor *pixels) override
Definition: color.h:6