OpenGL.hpp
1
// Copyright 2019 Arthur Sonzogni. All rights reserved.
2
// Use of this source code is governed by the MIT license that can be found in
3
// the LICENSE file.
4
5
#ifndef SMK_OPENGL_HPP
6
#define SMK_OPENGL_HPP
7
8
#ifdef __EMSCRIPTEN__
9
#include <GLES3/gl3.h>
10
#include <emscripten/emscripten.h>
11
#define GLFW_INCLUDE_ES3
12
#include <GLFW/glfw3.h>
13
14
#ifndef GLEW_KHR_parallel_shader_compile
15
#define GLEW_KHR_parallel_shader_compile 1
16
#define GL_MAX_SHADER_COMPILER_THREADS_KHR 0x91B0
17
#define GL_COMPLETION_STATUS_KHR 0x91B1
18
typedef
void(GL_APIENTRYP PFNGLMAXSHADERCOMPILERTHREADSKHRPROC)(GLuint count);
19
#endif
/* GL_KHR_parallel_shader_compile */
20
21
#else
22
#include <GL/glew.h>
23
#include <GLFW/glfw3.h>
24
#endif
25
26
#endif
/* end of include guard: SMK_OPENGL_HPP */