diff options
Diffstat (limited to 'src/include/ui/panel.h')
| -rw-r--r-- | src/include/ui/panel.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/ui/panel.h b/src/include/ui/panel.h new file mode 100644 index 0000000..83103d2 --- /dev/null +++ b/src/include/ui/panel.h @@ -0,0 +1,15 @@ +/*
+* BSD 2-Clause “Simplified” License
+* Copyright (c) 2019, Aldrik Ramaekers, aldrik.ramaekers@protonmail.com
+* All rights reserved.
+*/
+
+#ifndef INCLUDE_PANEL
+#define INCLUDE_PANEL
+
+// 1280 is our reference width.
+#define UI_SCALE(_w) (_w/1280.0f)
+
+void panel_render(float scale, s32 x, s32 y, s32 w, s32 h);
+
+#endif
\ No newline at end of file |
