Files
Upsilon/kandinsky/src/ion_context.cpp
Romain Goyet 753a4a7cb5 [Ion] Move to C++
Change-Id: Id75fca5e92a3fdf18258015bcda7cd70297b0fdb
2016-08-23 16:30:15 +02:00

26 lines
600 B
C++

#include <kandinsky/ion_context.h>
#include <ion.h>
KDIonContext * KDIonContext::sharedContext() {
static KDIonContext context;
return &context;
}
KDIonContext::KDIonContext() :
KDContext(KDPointZero,
KDRect(0, 0, Ion::Display::Width, Ion::Display::Height))
{
}
void KDIonContext::pushRect(KDRect rect, const KDColor * pixels) {
Ion::Display::pushRect(rect, pixels);
}
void KDIonContext::pushRectUniform(KDRect rect, KDColor color) {
Ion::Display::pushRectUniform(rect, color);
}
void KDIonContext::pullRect(KDRect rect, KDColor * pixels) {
Ion::Display::pullRect(rect, pixels);
}