This project is a work in progress. The implementation is incomplete and subject to change. The documentation can be inaccurate.
Package win handles window creation, drawing and events. The window events are defined in a dedicated package located at: github.com/mewmew/we
The library uses a small subset of the features provided by GLFW 3. For the sake of simplicity support for multiple windows has intentionally been left out.
Channels are used instead of callbacks for event handling. Each event type has its own dedicated channel and clients must register which events they are interested in by calling the corresponding Enable* functions.
All calls to this package must originate from the same dedicated OS thread. Use runtime.LockOSThread to achieve this.
Documentation provided by GoDoc.
- glfw
- win: handles window creation, drawing and events.
Install the GLFW 3 library and run:
go get github.com/mewmew/glfw/win
simple is an example which opens a new window, hooks the close events and displays two images.
go get github.com/mewmew/win/examples/simple
This code is hereby released into the public domain.