blob: 9173aa4e6c27053f52a6a0324e707297d9cd07ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#include <al/types.h>
#ifdef NAUNET_ON_WINDOWS
// classic... https://community.khronos.org/t/wingdiapi-not-defined/17645/2
#include <nnwt/windows.h>
#endif
#ifdef STELA_USE_GLAD
#ifdef STELA_USE_GLES
#include <glad/gles2.h>
#else
#include <glad/gl.h>
#endif
#else
#ifdef STELA_USE_GLES
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES2/gl2platform.h>
/*
#include <GLES3/gl3.h>
#include <GLES3/gl31.h>
#include <GLES3/gl32.h>
#include <GLES3/gl3ext.h>
#include <GLES3/gl3platform.h>
*/
#else
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>
#ifdef STELA_HAS_GLEXT
#include <GL/glext.h>
#include <GL/glcorearb.h>
#endif
#endif
#endif
bool stl_gl_check_error();
bool stl_gl_loader_load(void (*(*get_proc_address)(const char *))(void));
|