all repos — mgba @ e17e4fd19003209ff9db1f0ac1394e463c7b4a47

mGBA Game Boy Advance Emulator

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#include <GLES2/gl2.h>
10
11#include "platform/video-backend.h"
12
13struct GBAGLES2Context {
14	struct VideoBackend d;
15
16	GLuint tex;
17	GLuint fragmentShader;
18	GLuint vertexShader;
19	GLuint program;
20	GLuint bufferObject;
21	GLuint texLocation;
22	GLuint positionLocation;
23};
24
25void GBAGLES2ContextCreate(struct GBAGLES2Context*);
26
27#endif