summaryrefslogtreecommitdiff
path: root/src/gl/window.c
blob: 834d6ce46d9b39fec43d038ce08374f0411fc793 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "gl/glad/glad.h"
#include <GLFW/glfw3.h>
#include <lua.h>


int gl_init(lua_State *L)
{
	if (glfwInit() != GLFW_TRUE) {
		hs_throw_error(L, "failed to initialize GLFW");
	}
	return 0;
}