mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 14:20:39 +01:00
Migrate Kandinsky to C++
Change-Id: I2752a8db84ad0bb817119cf6c2993c1622621150
This commit is contained in:
19
kandinsky/src/framebuffer_context.cpp
Normal file
19
kandinsky/src/framebuffer_context.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <kandinsky/framebuffer_context.h>
|
||||
|
||||
KDFrameBufferContext::KDFrameBufferContext(KDFrameBuffer * frameBuffer) :
|
||||
KDContext(KDPointZero, frameBuffer->bounds()),
|
||||
m_frameBuffer(frameBuffer)
|
||||
{
|
||||
}
|
||||
|
||||
void KDFrameBufferContext::pushRect(KDRect rect, const KDColor * pixels) {
|
||||
m_frameBuffer->pushRect(rect, pixels);
|
||||
}
|
||||
|
||||
void KDFrameBufferContext::pushRectUniform(KDRect rect, KDColor color) {
|
||||
m_frameBuffer->pushRectUniform(rect, color);
|
||||
}
|
||||
|
||||
void KDFrameBufferContext::pullRect(KDRect rect, KDColor * pixels) {
|
||||
m_frameBuffer->pullRect(rect, pixels);
|
||||
}
|
||||
Reference in New Issue
Block a user