The Nim GUI/2D framework based on OpenGL and SDL2.

SakiKawasaki 8b17cab1fe update readme.md 4 年之前
.github c6b372f994 add workflow to generate API documents and update gh-pages 4 年之前
examples e7c6dcf4e2 global fix. 4 年之前
src 4e3cbb3c50 add `addMainScene` method. 4 年之前
tests 4e3cbb3c50 add `addMainScene` method. 4 年之前
.gitignore 609d9f42f4 add CollisionShape2D and debug mode. 4 年之前
CODE_OF_CONDUCT.md 621e4f41ee Create CODE_OF_CONDUCT.md 5 年之前
LICENSE eb23f4d1f3 Initial commit 5 年之前
README.md 8b17cab1fe update readme.md 4 年之前
nodesnim.nimble da66d963ca update readme.md, update version. 4 年之前

README.md

Nodesnim

The Nim GUI/2D framework based on OpenGL and SDL2.

Open Source Love Nim language-plastic License time tracker test

Latest version - 0.0.2

Stable version - 0.0.1

Install

  1. Install this repo
    • nimble install nodesnim or nimble install https://github.com/Ethosa/nodesnim.git
  2. Download OpenGL, SDL2_image, SDL2_mixer and freeglut Runtime binaries for your OS
  3. Put Runtime binaries in the .nimble/bin/ folder

Features

  • Godot-like node system.
  • Simple usage ```nim import nodesnim

Window("Hello, world!")

var scene = Scene("Main") hello = Label()

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

Debug mode

For use debug mode you should compile with -d:debug or --define:debug, e.g. nim c -r -d:debug main.nim.

Export

Use the Nim compiler user guide for export to the other OS.

  • CrossPlatform export for Windows (tested on Windows 7 x64 and Windows 10 x64)
    • nim c -d:mingw -d:release --opt:speed --noNimblePath file.nim
    • put Runtime binaries in the folder with the program.

F.A.Q

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

Copyright 2020 Ethosa