Hello There! I've been hacking around since 2006;
rafaelvasco / nimrod-glfw Goto Github PK
View Code? Open in Web Editor NEWGLFW Bindings for the Nim Programming Language
License: MIT License
GLFW Bindings for the Nim Programming Language
License: MIT License
Hi,
I've installed glfw3.0.1 on my Ubuntu 13.04 machine and made a symlink of the libglfw.so
shared library in /usr/lib/
. The glfw examples work and the glfwtest.nim compiles (sidenote: maybe the README.md could be updated to specify to cd test
before). However when I run ./glfwtest
, I get: could not import: glfwOpenWindow
(and it exits).
Is this a bug or just me? Thanks!
I noticed that this is due to glfw.nim following GLFW 2.x specifications and not the 3.0 ones which changed, e.g., glfwOpenWindow()
to glfwCreateWindow()
or also glfwGetWindowParam()
to glfwGetWindowAttrib()
. For more information: http://www.glfw.org/docs/3.0/moving.html.
Do you plan on updating/adjusting to/for 3.0?
Callbacks don't work . The cause may be the fact that closures are not stable yet.
Use cint
instead in the wrapper please. The current wrapper should only work on 32bit systems and only by chance on 64 bit systems (if at all).
There is already a GLFW3 wrapper available on babel, at https://github.com/EXetoC/nim-glfw
I tested this today on my rMBP (13", 2013), macOS 10.12.6. A simple test works: can open a window, show a spinning rainbow triangle, and can process keyboard events.
Oh, and I was using nim v0.17.0.
Best,
Rob
Do you know about my GLFW library (https://github.com/ephja/nim-glfw)?
I made the mistake of not forking your library 4 years ago or so.
I use Archlinux
$ git clone https://github.com/rafaelvasco/nimrod-glfw
$ cd nimrod-glfw/test
$ nim c -r -d:release --app:gui glfwtest.nim
glfwtest.nim(4) glfwtest
Error: unhandled exception: Failed to Initialize GLFW [Exception]
thx :>
There are a number of changes from GLFW2 to GLFW3.
GLFW3 no longer provides functions for using threads or loading images, but expects external libraries or language features to handle this.
GLFW3 is the default version on for instance Arch Linux now.
Being able to use GLFW3 together with Nimrod would be nice.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.