aboutsummaryrefslogtreecommitdiff
path: root/src/render.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-04-28 07:15:04 +0100
committerAkshay <[email protected]>2021-04-28 07:15:04 +0100
commit7bc365c2d1cf9252f52fdcf50ded3890cfeb7ddd (patch)
treef358e7d1568d394598dd8bae1a7a7c10c72143a4 /src/render.rs
parent092e187304c596f35b8ef9d7ca71850418d8a05d (diff)
initial attempt at moving into render threadrender-thread
Diffstat (limited to 'src/render.rs')
-rw-r--r--src/render.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/render.rs b/src/render.rs
new file mode 100644
index 0000000..f642a04
--- /dev/null
+++ b/src/render.rs
@@ -0,0 +1,19 @@
1use sdl2::pixels::Color;
2use sdl2::rect::{Point, Rect};
3
4pub enum Signal {
5 Redraw,
6 Request(RequestData),
7 DrawStatusline,
8 DrawCommandBox,
9 DrawBrush,
10 DrawLineToGrid,
11 DrawSymmetry,
12 DrawApp,
13 Quit,
14}
15
16pub enum RequestData {
17 WinSize,
18 MouseLoc,
19}