mirror of https://github.com/bjornbytes/lovr.git
Add glad for windows;
This commit is contained in:
parent
e897c2512a
commit
e5a311af09
|
@ -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);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue