blob: 992d05050d8e2c0fc3cd168f71b2e69f7514101c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// 5 may 2016
// draw.cpp
extern ID2D1Factory *d2dfactory;
struct uiDrawContext {
ID2D1RenderTarget *rt;
// TODO find out how this works
std::vector<struct drawState> *states;
ID2D1PathGeometry *currentClip;
};
struct uiDrawBitmap {
int Width;
int Height;
int Stride;
ID2D1Bitmap* bmp;
};
// drawpath.cpp
extern ID2D1PathGeometry *pathGeometry(uiDrawPath *p);
// drawmatrix.cpp
extern void m2d(uiDrawMatrix *m, D2D1_MATRIX_3X2_F *d);
|