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;
30};
31
32void mGLContextCreate(struct mGLContext*);
33
34CXX_GUARD_END
35
36#endif