GLFW is a free, Open Source, multi-platform library for OpenGL and OpenGL ES application development. It provides a simple, platform-independent API for creating windows and contexts, reading input, handling events, etc.
It is a great library, if you want to build OpenGL applications it is highly recommended.
You can find GLFW library at diego/glfw.
Running the examples
It is very simple. Create a new project, open the examples, build and run them:
$ bii init glfwexamples $ cd glfwexamples $ bii open examples/glfw $ bii build $ ./bin/examples_glfw_particles
Linux users may need to install some additional software
If you are using Ubuntu Linux, you may need to install some additional packages. To do so, execute:
$ sudo apt-get install mesa-common-dev libglu1-mesa-dev libxi-dev
Depending on your linux setup you might need to install also libxinerama-dev lib libxrandr-dev libxcursor-dev libxxf86vm-dev
If you are in RH - Fedora, you may need to install:
$ sudo yum install libGLU-devel libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel
You should see in your screen:
There are also other examples that have been built! Enjoy them and GLFW!
Of course, you can also do your own GLFW programs from your own block:
$ bii init myproject $ cd myproject $ bii new yourusername/yourblock
Then copy your source files to yourusername/yourblock folder, change your includes to:
#include <diego/glfw/deps/glad/glad.h> #include <diego/glfw/include/GLFW/glfw3.h>
And then, find and retrieve dependencies, build and run your program:
$ bii find $ bii build