# glfw-rs

GLFW3 bindings and wrapper for The Rust Programming Language.

## Instructions

### Building glfw-rs

1. Make sure you have the latest version of GLFW built and installed on your system. This can be cloned from the project's [Github repository](https://github.com/elmindreda/glfw). Note:
  - The version that is available from [glfw.org](http://www.glfw.org/) is _very_ out of date, and will not work with these bindings.
  - GLFW builds as a static library as default which doesn't work well with Rust, so you'll have to set the `BUILD_SHARED_LIBS` CMake option to true _before_ you build and install it.
2. Make sure you have the latest version of Rust built and installed. As with GLFW, this can be cloned from the [github repository](https://github.com/mozilla/rust).
3. Clone this repository: `$ git clone https://github.com/bjz/glfw-rs.git`, then `$ cd glfw-rs`.
4. Run `$ make`. This will build the library to the `./lib` directory.

### Building the examples

1. `$ cd glfw/examples`
2. `$ make` or for a specific example `$ make <example name>` (eg. `$ make window`)
# glfw-rs

GLFW3 bindings and wrapper for The Rust Programming Language.

## Instructions

### Building glfw-rs

1. Make sure you have the latest version of GLFW built and installed on your system. This can be cloned from the project's [Github repository](https://github.com/elmindreda/glfw). Note:
  - The version that is available from [glfw.org](http://www.glfw.org/) is _very_ out of date, and will not work with these bindings.
  - GLFW builds as a static library as default which doesn't work well with Rust, so you'll have to set the `BUILD_SHARED_LIBS` CMake option to true _before_ you build and install it.
2. Make sure you have the latest version of Rust built and installed. As with GLFW, this can be cloned from the [github repository](https://github.com/mozilla/rust).
3. Clone this repository: `$ git clone https://github.com/bjz/glfw-rs.git`, then `$ cd glfw-rs`.
4. Run `$ make`. This will build the library to the `./lib` directory.

### Building the examples

1. `$ cd glfw/examples`
2. `$ make` or for a specific example `$ make <example name>` (eg. `$ make window`)

## glfw-rs in use

- [q3](https://github.com/Jeaye/q3)
- [rsmc](https://github.com/cyndis/rsmc/)
- [open.gl-tutorials](https://github.com/bjz/open.gl-tutorials)

Add examples of glfw-rs in use to readme
Add examples of glfw-rs in use to readme
