The Nim GUI/2D framework based on OpenGL and SDL2.
|
há 3 anos atrás | |
---|---|---|
.github | há 3 anos atrás | |
engine | há 3 anos atrás | |
examples | há 3 anos atrás | |
screenshots | há 4 anos atrás | |
src | há 3 anos atrás | |
tests | há 3 anos atrás | |
.gitignore | há 4 anos atrás | |
CODE_OF_CONDUCT.md | há 4 anos atrás | |
LICENSE | há 5 anos atrás | |
README.md | há 3 anos atrás | |
nodesnim.nimble | há 3 anos atrás |
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-0.X.X
nimble install
sudo apt install -y freeglut3 freeglut3-dev
sudo apt install --fix-missing -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-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 |Graphics | |:--: |:--: |:--: | :--: |:--: |:--: | |Anchor |Node |Control |Node2D |Node3D |Drawable | |Color |Canvas |ColorRect |Sprite |GeometryInstance|GradientDrawable| |Font |Scene |TextureRect |AnimatedSprite | | | |Enums |AudioStreamPlayer|Label |YSort | | | |Exceptions |AnimationPlayer |Button |CollisionShape2D| | | |Image | |EditText |Camera2D | | | |Input | |Box |TileMap | | | |Rect2 | |HBox | | | | |Vector2 | |VBox | | | | |Circle2 | |GridBox | | | | |Polygon2 | |Scroll | | | | |AudioStream | |ProgressBar | | | | |Animation | |Slider | | | | |Vector3 | |VSlider | | | | |SceneBuilder| |Popup | | | | |StyleSheet | |TextureButton | | | | | | |TextureProgressBar| | | | | | |Counter | | | | | | |Switch | | | | | | |SubWindow | | | | | | |LineEdit | | | | | | |CheckBox | | | |
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