Git Product home page Git Product logo

nuklear-nim's Introduction

nuklear-nim

Nim bindings for https://github.com/vurtun/nuklear/

These are Nim bindings to the Nuklear Immediate Mode GUI library : https://github.com/vurtun/nuklear/

The bindings do work - see this example - for an example using GLFW and OpenGL.

nuklear-nim

This repository is a WIP and will be undergoing heavy changes over the next month or so. The bindings should be relatively stable - some more functionality from Nuklear will be added over time.

If you notice anything missing / not working / have suggestions for improvement, please submit an issue or pull request for review.

nuklear-nim's People

Contributors

bsinky avatar krux02 avatar mjr27 avatar yglukhov avatar zacharycarter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nuklear-nim's Issues

Example crashes

Hello,

I've tried to run the example but got crash on
if ctx.open("test", newRect(50, 50, 230, 250), WINDOW_BORDER.ord or WINDOW_MOVABLE.ord or WINDOW_SCALABLE.ord or WINDOW_MINIMIZABLE.ord or WINDOW_TITLE.ord)

I'm using glfw3 dll from official website.

Error getting examples to run (windows)

Installed following via Nimble.
nimble install https://github.com/zacharycarter/nuklear-nim.git
nimble install bgfxdotnim
(https://github.com/zacharycarter/bgfx.nim)
nimble install sdl2
(https://github.com/nim-lang/sdl2)
nimble install nimrod-glfw
(https://github.com/rafaelvasco/nimrod-glfw)
nimble install opengl
(https://github.com/nim-lang/opengl)

But getting below error when running examples
e:\wargame\nim\nuklear-nim-master\examples\nuklear_nim_examples\glfw3_opengl3.nim(29, 16) Error: undeclared identifier: 'bgfx_vertex_decl_t'

Abandoned?

I was looking into using nuklear with nim and was wondering if you are planning any further work on this or should I just use nimx?

Can't compile the example

Compiler output:
nim c -r examples\nuklear_nim_examples\glfw3_opengl3.nim
....
gcc.exe: error: C:\Users\user\nimcache\glfw3_opengl3_d\bind.c.o: No such file or directory

nimble warnings

Installing this dependency using nimble gives me a few warnings:

> nimble install https://github.com/zacharycarter/nuklear-nim.git
Downloading https://github.com/zacharycarter/nuklear-nim.git using git
   Warning: Package 'nuklear' has an incorrect structure. It should contain a single directory hierarchy for source files, named 'nuklear', but file 'glfw3_opengl3.nim' is in a directory named 'examples\nuklear_nim_examples' instead. This will be an error in the future.
      Hint: If 'examples\nuklear_nim_examples' contains source files for building 'nuklear', rename it to 'nuklear'. Otherwise, prevent its installation by adding `skipDirs = @["examples\nuklear_nim_examples"]` to the .nimble file.
  Verifying dependencies for [email protected]
 Installing [email protected]
   Success: nuklear installed successfully.

Remove `nk_` portion from the identifers

It's safe to assume that whatever is found in nuklear.nim is well, part of Nuklear. For what is exposed to Nim, I think it would be better to remove that nk_ portion from the identifiers, ans then suggest that Nuklear be imported like so: import nuklear as nk.

For example, nk.rgb() looks much cleaner than nk_rgb().

The only issue I can see if someone does import nuklear without the as portion and may have something conflict with a separate import.

How did you get past this error?

Hi,

I'm trying to make the binding on my own to learn and am running in this error

Error: unhandled exception: int128.nim(330, 11) `false` overflow [AssertionError]

Was wondering how you got past this if you ran into it. This is all I am getting which isn't very helpful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.