all repos — mgba @ ef68c84e76bfd95b454bcbc3eec4d6946d23a282

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#include <GL/gl.h>
15#endif
16
17#include "platform/video-backend.h"
18
19struct GBAGLContext {
20	struct VideoBackend d;
21
22	GLuint tex;
23};
24
25void GBAGLContextCreate(struct GBAGLContext*);
26
27#endif