The Nim GUI/2D framework based on OpenGL and SDL2.
|
há 4 anos atrás | |
---|---|---|
.github | há 4 anos atrás | |
examples | há 4 anos atrás | |
src | há 4 anos atrás | |
tests | há 4 anos atrás | |
.gitignore | há 4 anos atrás | |
CODE_OF_CONDUCT.md | há 5 anos atrás | |
LICENSE | há 5 anos atrás | |
README.md | há 4 anos atrás | |
nodesnim.nimble | há 4 anos atrás |
nimble install nodesnim
or nimble install https://github.com/Ethosa/nodesnim.git
.nimble/bin/
folderWindow("Hello, world!")
var
scene_obj: SceneObj
scene = Scene("Main", scene_obj)
label_obj: LabelObj
hello = Label(label_obj)
hello.setText("Hello, world!") hello.setSizeAnchor(1, 1) hello.setTextAlign(0.5, 0.5, 0.5, 0.5) scene.addChild(hello)
addMainScene(scene) windowLaunch() ```
Now available
For use debug mode you should compile with -d:debug
or --define:debug
, e.g. nim c -r -d:debug main.nim
.
Use the Nim compiler user guide
for export to the other OS.
nim c -d:mingw -d:release --opt:speed --noNimblePath file.nim
Q: Where can I see examples?
A: You can see this in the tests
or examples
folder.
Q: Where can I read the docs?
A: You can read docs here