diff src/window.nim @ 466:1dd9e2393a9e

add: structure code for crossplatform, add some input handling + bugfixes
author Sam <sam@basx.dev>
date Thu, 22 Dec 2022 00:06:40 +0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/window.nim	Thu Dec 22 00:06:40 2022 +0700
@@ -0,0 +1,6 @@
+when defined(linux):
+  import ./platform/linux/xlib
+  export xlib
+elif defined(windows):
+  import ./platform/windows/win32
+  export win32