Giter VIP home page Giter VIP logo

nimrod-glfw's Introduction

Rafael Vasco

rafaelvasco's GitHub stats

Top Langs

Hello There! I've been hacking around since 2006;

nimrod-glfw's People

Contributors

aurose94 avatar clyybber avatar fowlmouth avatar rafaelvasco avatar rayman22201 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

nimrod-glfw's Issues

could not import: glfwOpenWindow

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!

EDIT

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?

Nimrod's int is not C's int

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).

Tested on Mac

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

Feature request: Please support GLFW3

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.

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.