Skip to content

Commit

Permalink
Merge pull request #38 from guzba/master
Browse files Browse the repository at this point in the history
small stuff
  • Loading branch information
treeform authored Nov 19, 2021
2 parents 2dc3a5f + 2d10580 commit 39c7b41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ Here are a few reasons that may be worth considering:

* Windy is written in Nim so it will be more natural to use than bindings to other libraries. For example, making a window fullscreen is as easy as `window.fullscreen = true`. Consider browsing some of the examples and consider if you would find this Nim-first API more pleasant to work with.

* Windy includes events for double, triple and quadruple clicks. Furthermore, Windy maintains the keyboard and mouse state in a way that makes reacting to input state easier each frame. (See `buttonPressed[]`, `buttonDown[]`, `buttonReleased[]` and `buttonToggle[]` on `Window`.)
* Windy includes events for double, triple and quadruple clicks. Furthermore, Windy maintains the keyboard and mouse state in a way that makes reacting to input state easier each frame. See `buttonPressed[]`, `buttonDown[]`, `buttonReleased[]` and `buttonToggle[]` on `Window`.

* Windy has IME input support for Chinese, Japanese, Korean and other languages. Text input can also be enabled or disabled at any time (for example, to avoid opening the IME editor when a user just wants to use WASD in a game).
16 changes: 0 additions & 16 deletions windy.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,3 @@ srcDir = "src"
requires "nim >= 1.4.8"
requires "vmath >= 1.1.0"
requires "opengl >= 1.2.6"

task bindings, "Generate bindings":

proc compile(libName: string, flags = "") =
exec "nim c -f " & flags & " -d:release --app:lib --gc:arc --tlsEmulation:off --out:" & libName & " --outdir:bindings/generated bindings/bindings.nim"

when defined(windows):
compile "windy.dll"

elif defined(macosx):
compile "libwindy.dylib.arm", "-l:'-target arm64-apple-macos11' -t:'-target arm64-apple-macos11'"
compile "libwindy.dylib.x64", "-l:'-target x86_64-apple-macos10.12' -t:'-target x86_64-apple-macos10.12'"
exec "lipo bindings/generated/libwindy.dylib.arm bindings/generated/libwindy.dylib.x64 -output bindings/generated/libwindy.dylib -create"

else:
compile "libwindy.so"

0 comments on commit 39c7b41

Please sign in to comment.