all repos — mgba @ 3d4faa41e281ff042451032190b3191af2737d5a

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#include <mgba-util/common.h>
10
11CXX_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
26struct mGLContext {
27	struct VideoBackend d;
28
29	GLuint tex[2];
30	int activeTex;
31};
32
33void mGLContextCreate(struct mGLContext*);
34
35CXX_GUARD_END
36
37#endif