<commit_before>Go Bindings for GLFW 3
======================

* This wrapper is now announced stable. There will be no API change until next major revision.
* All the modules are implemented except "Native Acess".
* See http://godoc.org/github.com/go-gl/glfw3 for documentation.
* You can help by submitting examples to http://github.com/go-gl/examples

NOTE: Mingw64 users should rename ***glfw3dll.a*** to ***libglfw3dll.a***

The library can be used as below:

```go
package main

import (
	"fmt"
	glfw "github.com/go-gl/glfw3"
)

func errorCallback(err glfw.ErrorCode, desc string) {
	fmt.Printf("%v: %v\n", err, desc)
}

func main() {
	glfw.SetErrorCallback(errorCallback)

	if !glfw.Init() {
		panic("Can't init glfw!")
	}
	defer glfw.Terminate()

	window, err := glfw.CreateWindow(640, 480, "Testing", nil, nil)
	if err != nil {
		panic(err)
	}

	window.MakeContextCurrent()
<commit_msg>Readme update<commit_after>Go Bindings for GLFW 3
======================

* This wrapper is now announced stable. There will be no API change until next major revision.
* See http://godoc.org/github.com/go-gl/glfw3 for documentation.
* You can help by submitting examples to http://github.com/go-gl/examples

Remarks
=======

* Mingw64 users should rename ***glfw3dll.a*** to ***libglfw3dll.a***
* Some functions -which are marked in the documentation- can be called only from the main thread. See https://code.google.com/p/go-wiki/wiki/LockOSThread for how.

Known Issues
============

*  Issue #37 -> In Windows, scroll callback function always receive 0 for xoff and yoff.

Example
=======

```go
package main

import (
	"fmt"
	glfw "github.com/go-gl/glfw3"
)

func errorCallback(err glfw.ErrorCode, desc string) {
	fmt.Printf("%v: %v\n", err, desc)
}

func main() {
	glfw.SetErrorCallback(errorCallback)

	if !glfw.Init() {
		panic("Can't init glfw!")
	}
	defer glfw.Terminate()

	window, err := glfw.CreateWindow(640, 480, "Testing", nil, nil)
	if err != nil {
		panic(err)
	}

	window.MakeContextCurrent()

{'fraction_non_alphanumeric': 0.15952143569292124, 'fraction_numerical': 0.014456630109670987, 'mean_word_length': 4.2539267015706805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2289964', 'n_tokens_mistral': 722, 'n_tokens_neox': 673, 'n_words': 211}