Add glad for windows;

This commit is contained in:
bjorn 2017-06-23 19:35:49 -07:00
parent e897c2512a
commit e5a311af09
4 changed files with 3639 additions and 4 deletions

View File

@ -49,6 +49,9 @@ void lovrGraphicsInit() {
// Initialize all the things
glfwMakeContextCurrent(state.window);
glfwSetWindowCloseCallback(state.window, onCloseWindow);
#ifdef _WIN32
gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
#endif
glfwSetTime(0);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

1333
src/lib/glad/glad.c Normal file

File diff suppressed because it is too large Load Diff

2298
src/lib/glad/glad.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,12 @@
#pragma once
#ifdef _WIN32
#define APIENTRY __stdcall
#if LOVR_WEB
#define GLFW_INCLUDE_ES3
#elif __APPLE__
#define GLFW_INCLUDE_GLCOREARB
#elif LOVR_WEB
#define GLFW_INCLUDE_ES3
#elif _WIN32
#define APIENTRY __stdcall
#include "src/lib/glad.h"
#endif
#include <GLFW/glfw3.h>