SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
SDL/opengl_compat.c
1 #define GL_GLEXT_PROTOTYPES
2 #include <SDL_opengl.h>
3
4 #ifndef __APPLE__
5 #define GL_COMPAT_NAME(func) gl_compat_##func
6 #define GL_COMPAT_VAR(func) typeof(func) *GL_COMPAT_NAME(func)
7
8 GL_COMPAT_VAR(glCreateShader);
9 GL_COMPAT_VAR(glGetAttribLocation);
10 GL_COMPAT_VAR(glGetUniformLocation);
11 GL_COMPAT_VAR(glUseProgram);
12 GL_COMPAT_VAR(glGenVertexArrays);
13 GL_COMPAT_VAR(glBindVertexArray);
14 GL_COMPAT_VAR(glGenBuffers);
15 GL_COMPAT_VAR(glBindBuffer);
16 GL_COMPAT_VAR(glBufferData);
17 GL_COMPAT_VAR(glEnableVertexAttribArray);
18 GL_COMPAT_VAR(glVertexAttribPointer);
19 GL_COMPAT_VAR(glCreateProgram);
20 GL_COMPAT_VAR(glAttachShader);
21 GL_COMPAT_VAR(glLinkProgram);
22 GL_COMPAT_VAR(glGetProgramiv);
23 GL_COMPAT_VAR(glGetProgramInfoLog);
24 GL_COMPAT_VAR(glDeleteShader);
25 GL_COMPAT_VAR(glUniform2f);
26 GL_COMPAT_VAR(glActiveTexture);
27 GL_COMPAT_VAR(glUniform1i);
28 GL_COMPAT_VAR(glBindFragDataLocation);
29 GL_COMPAT_VAR(glDeleteProgram);
30 GL_COMPAT_VAR(glShaderSource);
31 GL_COMPAT_VAR(glCompileShader);
32 GL_COMPAT_VAR(glGetShaderiv);
33 GL_COMPAT_VAR(glGetShaderInfoLog);
34 #endif
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.