The Nim GUI/2D framework based on OpenGL and SDL2.
|
4 rokov pred | |
---|---|---|
.github | 4 rokov pred | |
examples | 4 rokov pred | |
screenshots | 4 rokov pred | |
src | 4 rokov pred | |
tests | 4 rokov pred | |
.gitignore | 4 rokov pred | |
CODE_OF_CONDUCT.md | 4 rokov pred | |
LICENSE | 5 rokov pred | |
README.md | 4 rokov pred | |
nodesnim.nimble | 4 rokov pred |
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() ```
This section contains links to documentation for all nodes. |Core |Default nodes |Control nodes |2D Nodes | |:--: |:--: |:--: | :--: | |Anchor |Node |Control |Node2D | |Color |Canvas |ColorRect |Sprite | |ColorText|Scene |TextureRect |AnimatedSprite | |Enums |AudioStreamPlayer|Label |YSort | |Exceptions| |Button |CollisionShape2D| |Image | |EditText |Camera2D | |Input | |RichLabel | | |Rect2 | |RichEditText | | |Vector2 | |Box | | |Circle2 | |HBox | | |Polygon2| |VBox | | |AudioStream| |GridBox | | |Animation | |Scroll | | | | |ProgressBar | | | | |Slider | | | | |VProgressBar | | | | |VSlider | | | | |Popup | | | | |TextureButton | | | | |TextureProgressBar| | | | |Counter | | | | |Switch | |
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