Numworks Epsilon
1.4.1
Graphing Calculator Operating System
ion_context.cpp
Go to the documentation of this file.
1
#include <
kandinsky/ion_context.h
>
2
#include <
ion.h
>
3
4
KDIonContext
*
KDIonContext::sharedContext
() {
5
static
KDIonContext
context;
6
return
&context;
7
}
8
9
KDIonContext::KDIonContext() :
10
KDContext
(
KDPointZero
,
11
KDRect
(0, 0,
Ion
::
Display
::
Width
,
Ion
::
Display
::
Height
))
12
{
13
}
14
15
void
KDIonContext::pushRect(
KDRect
rect,
const
KDColor
* pixels) {
16
Ion::Display::pushRect
(rect, pixels);
17
}
18
19
void
KDIonContext::pushRectUniform(
KDRect
rect,
KDColor
color) {
20
Ion::Display::pushRectUniform
(rect, color);
21
}
22
23
void
KDIonContext::pullRect(
KDRect
rect,
KDColor
* pixels) {
24
Ion::Display::pullRect
(rect, pixels);
25
}
ion.h
Ion::Display::Width
constexpr int Width
Definition:
display.h:26
Ion::Device::Bench::Command::Display
void Display(const char *input)
Definition:
display.cpp:11
Ion::Display::pullRect
void pullRect(KDRect r, KDColor *pixels)
Definition:
display.cpp:26
KDPointZero
constexpr KDPoint KDPointZero
Definition:
point.h:25
ion_context.h
Ion::Display::pushRect
void pushRect(KDRect r, const KDColor *pixels)
Definition:
display.cpp:14
KDIonContext::sharedContext
static KDIonContext * sharedContext()
Definition:
ion_context.cpp:4
KDContext
Definition:
context.h:8
KDRect
Definition:
rect.h:26
KDColor
Definition:
color.h:6
Ion
Definition:
backlight.h:6
Ion::Display::pushRectUniform
void pushRectUniform(KDRect r, KDColor c)
Definition:
display.cpp:20
Ion::Display::Height
constexpr int Height
Definition:
display.h:27
KDIonContext
Definition:
ion_context.h:6
epsilon
kandinsky
src
ion_context.cpp
Generated by
1.8.14