The Nim GUI/2D framework based on OpenGL and SDL2.
|
3 年之前 | |
---|---|---|
.github | 3 年之前 | |
engine | 3 年之前 | |
examples | 3 年之前 | |
screenshots | 4 年之前 | |
src | 3 年之前 | |
tests | 3 年之前 | |
.gitignore | 4 年之前 | |
CODE_OF_CONDUCT.md | 4 年之前 | |
LICENSE | 5 年之前 | |
README.md | 3 年之前 | |
nodesnim.nimble | 3 年之前 |
Install Nodesnim
nimble install nodesnim
or nimble install https://github.com/Ethosa/nodesnim.git
Nightly:
git clone https://github.com/Ethosa/nodesnim/`
cd nodesnim
git checkout nightly
nimble install
sudo apt install -y freeglut3 freeglut3-dev
sudo apt install --fix-missing -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev
.nimble/bin/
folderWindow("Hello, world!")
build:
addMainScene(scene) windowLaunch()
```
This section contains links to documentation for all nodes. |Core |Default nodes |Control nodes |2D Nodes |3D Nodes | |:--: |:--: |:--: | :--: |:--: | |Anchor |Node |Control |Node2D |Node3D | |Color |Canvas |ColorRect |Sprite |GeometryInstance| |ColorText|Scene |TextureRect |AnimatedSprite | | |Enums |AudioStreamPlayer|Label |YSort | | |Exceptions|AnimationPlayer|Button |CollisionShape2D| | |Image | |EditText |Camera2D | | |Input | |RichLabel | | | |Rect2 | |RichEditText | | | |Vector2 | |Box | | | |Circle2 | |HBox | | | |Polygon2| |VBox | | | |AudioStream| |GridBox | | | |Animation | |Scroll | | | |Vector3 | |ProgressBar | | | |SceneBuilder| |Slider | | | | | |VSlider | | | | | |Popup | | | | | |TextureButton | | | | | |TextureProgressBar| | | | | |Counter | | | | | |Switch | | | | | |SubWindow | | | | | |LineEdit | | |
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 (or compile with -d:static_sdl2
-> tested on Windows)
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