src/platform/opengl/gles2.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 GLES2_H
7#define GLES2_H
8
9#ifdef BUILD_GL
10#ifdef __APPLE__
11#include <OpenGL/gl.h>
12#else
13#include <GL/gl.h>
14#endif
15#else
16#include <GLES2/gl2.h>
17#endif
18
19#include "platform/video-backend.h"
20
21struct GBAGLES2Context {
22 struct VideoBackend d;
23
24 GLuint tex;
25 GLuint fragmentShader;
26 GLuint vertexShader;
27 GLuint program;
28 GLuint bufferObject;
29 GLuint texLocation;
30 GLuint positionLocation;
31};
32
33void GBAGLES2ContextCreate(struct GBAGLES2Context*);
34
35#endif