GLFW-b: GLFW bindings

[ bsd3, graphics, library ] [ Propose Tags ]

Bindings to GLFW, a free, open source, multi-platform library for creating OpenGL contexts and managing input, including keyboard, mouse, joystick and time.

GLFW-b works on Windows, Mac OS X, and many Unix-like operating systems.

Please see README.md (http://github.com/bsl/GLFW-b/blob/master/README.md) for information about how these bindings differ from the ones in the GLFW package (http://hackage.haskell.org/package/GLFW).

For more information about the library on which these bindings are based, please see http://glfw.sourceforge.net.


[Skip to Readme]

Modules

[Index]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0.1, 0.0.2, 0.0.2.1, 0.0.2.2, 0.0.2.3, 0.0.2.4, 0.0.2.5, 0.0.2.6, 0.0.2.7, 0.0.2.8, 0.0.2.9, 0.0.2.10, 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.0.5, 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.2.1, 1.3, 1.4, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.4.7.1, 1.4.7.2, 1.4.7.3, 1.4.8.0, 1.4.8.1, 1.4.8.2, 1.4.8.3, 1.4.8.4, 3.2.1.0, 3.2.1.1, 3.3.0.0, 3.3.9.0
Dependencies base (>=4 && <4.6) [details]
License BSD-3-Clause
Author Brian Lewis <brian@lorf.org>
Maintainer Brian Lewis <brian@lorf.org>
Revised Revision 1 made by HerbertValerioRiedel at 2019-01-07T10:49:38Z
Category Graphics
Source repo head: git clone git://github.com/bsl/GLFW-b.git
Uploaded by BrianLewis at 2012-02-23T08:28:12Z
Distributions LTSHaskell:3.3.9.0, NixOS:3.3.9.0, Stackage:3.3.9.0
Reverse Dependencies 27 direct, 44 indirect [details]
Downloads 49280 total (151 in the last 30 days)
Rating 2.5 (votes: 3) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for GLFW-b-0.1.0.2

[back to package description]

Differences between GLFW and GLFW-b 2011.03

  • GLFW binds to version 2.6 of the GLFW C library. GLFW-b binds to 2.7.

  • Some GLFW functions return OpenGL {Gettable,Settable}StateVars. I don't like this because it adds an extra step to extract a value and causes GLFW to be dependent on OpenGL. GLFW-b doesn't depend on OpenGL.

  • GLFW sometimes depends on GLFW C library internally defined values. GLFW-b doesn't. For example, GLFW-b doesn't assume that GL_FALSE = 0. I don't think this makes a difference in practice, but it makes me feel better.

  • GLFW sometimes assumes that certain Haskell types are equivalent to certain C types, e.g. Int and int. GLFW-b doesn't. GLFW-b always uses the appropriate type from Foreign.C.Types. I don't think this makes a difference in practice, but it makes me feel better.

  • GLFW contains workarounds for a bugs in GHC < 6.10 FFI. GLFW-b doesn't.

  • GLFW's API is pretty faithful to the C API. GLFW-b prefers to use full words and self-explanatory function names.

  • In GLFW-b, registering hints and opening a window are combined into one step.

  • GLFW has support for loading textures and rendering strings. GLFW-b doesn't.