The Nim GUI/2D framework based on OpenGL and SDL2.
Ethosa 7abb307658 Merge pull request #41 from Ethosa/nightly | 3 years ago | |
---|---|---|
.github | 3 years ago | |
examples | 3 years ago | |
src | 3 years ago | |
tests | 3 years ago | |
.gitignore | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
icon.svg | 3 years ago | |
nodesnim.nimble | 3 years ago |
Install Nodesnim
Install dependencies
sudo apt install --fix-missing -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
.nimble/bin/
folderWindow("Hello, world!")
build:
- Scene scene:
- Label hello:
call:
setSizeAnchor(1, 1)
setTextAlign(0.5, 0.5, 0.5, 0.5)
setText("Hello, world!")
setBackgroundColor(Color(31, 45, 62))
addMainScene(scene) windowLaunch()
```
This section contains links to documentation for all nodes. |Core |Default nodes |Control nodes |2D Nodes |3D Nodes |Graphics | |:--: |:--: |:--: | :--: |:--: |:--: | |Anchor |Node |Control |Node2D |Node3D |Drawable | |Color |Canvas |ColorRect |Sprite |GeometryInstance|GradientDrawable| |Font |Scene |TextureRect |AnimatedSprite |Camera3D | | |Enums |AudioStreamPlayer|Label |YSort |Sprite3D | | |Exceptions |AnimationPlayer |Button |CollisionShape2D| | | |Image | |EditText |Camera2D | | | |Input | |Box |TileMap | | | |Rect2 | |HBox | | | | |Vector2 | |VBox | | | | |Circle2 | |GridBox | | | | |Polygon2 | |Scroll | | | | |AudioStream | |ProgressBar | | | | |Animation | |Slider | | | | |Vector3 | |Popup | | | | |SceneBuilder| |TextureButton | | | | |StyleSheet | |TextureProgressBar| | | | |TileSet | |Counter | | | | |ChartData | |Switch | | | | |Scripts | |SubWindow | | | | |Scene loader| |CheckBox | | | | | | |ToolTip | | | | | | |Chart | | | |
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.
Static linking SDL2
Also use niminst
tool for generate an installer
nim c -d:mingw -d:release --opt:speed --noNimblePath file.nim