1 /* Copyright (c) 2013-2015 Jeffrey Pfau 2 * 3 * This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 #ifndef GL_H 7 #define GL_H 8 9 #include <mgba-util/common.h> 10 11 CXX_GUARD_START 12 13 #ifdef USE_EPOXY 14 #include <epoxy/gl.h> 15 #elif defined(__APPLE__) 16 #include <OpenGL/gl.h> 17 #else 18 #ifdef _MSC_VER 19 #include <windows.h> 20 #endif 21 #include <GL/gl.h> 22 #endif 23 24 #include "platform/video-backend.h" 25 26 struct mGLContext { 27 struct VideoBackend d; 28 29 GLuint tex[2]; 30 int activeTex; 31 }; 32 33 void mGLContextCreate(struct mGLContext*); 34 35 CXX_GUARD_END 36 37 #endif 38