OpenGL: Rework contexts

This commit is contained in:
Lynix
2020-04-19 01:35:19 +02:00
parent 3b24d020e8
commit 0fa095e8f7
10 changed files with 93 additions and 137 deletions

View File

@@ -7,6 +7,7 @@
#ifndef NAZARA_OPENGLRENDERER_COREFUNCTIONS_HPP
#define NAZARA_OPENGLRENDERER_COREFUNCTIONS_HPP
#define GL_GLES_PROTOTYPES 0
#include <GLES3/gl3.h>
// OpenGL core
@@ -28,6 +29,7 @@
cb(glBufferSubData, PFNGLBUFFERSUBDATAPROC) \
cb(glClear, PFNGLCLEARPROC) \
cb(glClearColor, PFNGLCLEARCOLORPROC) \
cb(glClearDepthf, PFNGLCLEARDEPTHFPROC) \
cb(glClearStencil, PFNGLCLEARSTENCILPROC) \
cb(glCreateProgram, PFNGLCREATEPROGRAMPROC) \
cb(glCreateShader, PFNGLCREATESHADERPROC) \
@@ -104,6 +106,7 @@
cb(glSamplerParameterf, PFNGLSAMPLERPARAMETERFPROC) \
cb(glSamplerParameteri, PFNGLSAMPLERPARAMETERIPROC) \
cb(glScissor, PFNGLSCISSORPROC) \
cb(glShaderBinary, PFNGLSHADERBINARYPROC) \
cb(glShaderSource, PFNGLSHADERSOURCEPROC) \
cb(glStencilFunc, PFNGLSTENCILFUNCPROC) \
cb(glStencilFuncSeparate, PFNGLSTENCILFUNCSEPARATEPROC) \