1
0
Fork 0

Move OpenGL headers from API to implementation.

We don't want to expose any OpenGL functions to client code. Because if we do, there is a chance we break client code if we switch implementation (Direct3D).
This commit is contained in:
Henrik Hautakoski 2020-01-03 20:30:08 +01:00
parent 1dc0ecf563
commit 2a111a237d
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745
13 changed files with 16 additions and 16 deletions

View file

@ -2,7 +2,7 @@
#ifndef SPECTRE_GRAPHICS_GL_CHECKERROR_H
#define SPECTRE_GRAPHICS_GL_CHECKERROR_H
#include <Spectre/Graphics/OpenGL.h>
#include "gl.h"
#define checkGLError(expr) do { expr; glCheckError(__FILE__, __LINE__, #expr); } while(false)