Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.22 KB

README.md

File metadata and controls

27 lines (16 loc) · 1.22 KB

odin-glfw

Odin bindings to GLFW 3.2.1 (at least)

odin-glfw contain bindings to the C library, in addition to a bunch of additional wrappers and utility functions.

NOTE: Binds to a static GLFW in windows, and shared in linux.

NOTE: It is recommended to put this into the shared collection:

cd Odin/shared
git clone https://github.com/vassvik/odin-glfw.git

NOTE: Run build_glfw.bat in windows to build the lib. Requires Git and CMake to clone the GLFW repo and build it. In linux you can likely get your distro's glfw3 package and it will link just fine.

Usage:

GLFW is primarily used to create a window, create an opengl context, and to handle input. GLFW also works for Vulkan.

To use OpenGL functions you need an OpenGL function loader. See https://github.com/vassvik/odin-gl for one such loader.

This library is used in https://github.com/vassvik/odin-gl_font to perform simple text rendering. Take a look.

License

This library is published under a dual public domain and MIT license, inspired by Sean Barret's stb libraries.