all repos — mgba @ 4c38f769565e8ddd7d3a8eef1a41975206c129a0

mGBA Game Boy Advance Emulator

src/platform/opengl/gl.h (view raw)

 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#ifdef USE_EPOXY
10#include <epoxy/gl.h>
11#elif defined(__APPLE__)
12#include <OpenGL/gl.h>
13#else
14#ifdef _MSC_VER
15#include <windows.h>
16#endif
17#include <GL/gl.h>
18#endif
19
20#include "platform/video-backend.h"
21
22struct mGLContext {
23	struct VideoBackend d;
24
25	GLuint tex;
26};
27
28void mGLContextCreate(struct mGLContext*);
29
30#endif