Drygord / odin-glfw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:Other


Languages

Language:Odin 99.1%Language:Batchfile 0.9%