/pony-glfw3

Pony interface to GLFW3

Primary LanguagePonyMIT LicenseMIT

Pony GLFW3

Work in progress improvements based on redvers/pony-glfw3.

TODO

  • Add listener for window related methods
  • Add listener for monitors related methods
  • Add listener for joystick related methods

Warning: experimental and un-tested, suggestions and pull-requests are welcome.

Usage

Add this repository as a submodule to your application:

git submodule add git@github.com:xpac27/pony-glfw3.git

Include this package in your Pony application:

use "pony-glfw3/Glfw3"

Start calling OpenGL methods from your Pony application:

if (Glfw3.glfwInit() == GLFWTrue()) then
  env.out.print("GLFW initialized version: " + Glfw3.glfwGetVersionString())

You might want to using this package together with OpenGL.

See main.pony for example.