emulator opengl: system GLESv1 first commit.

This is the first commit for the GLESv1 implementation.
It also includes needed fixes in emugen to support const types.
Also, changed glFinish definition in gl.in to match the
definition as in gl.h.

Change-Id: I90262a1db6035a90af8db17984acecef6499847a
This commit is contained in:
Stas Gurtovoy
2011-05-05 11:07:34 +03:00
committed by Guy Zadikario
parent b7caa30ba2
commit d32c2d9633
19 changed files with 145 additions and 64 deletions

View File

@@ -0,0 +1,31 @@
#include "EGLClientIface.h"
#include "HostConnection.h"
#include "GLEncoder.h"
//XXX: fix this macro to get the context from fast tls path
#define GET_CONTEXT gl_client_context_t * ctx = HostConnection::get()->glEncoder();
#include "gl_entry.cpp"
static EGLClient_eglInterface * s_egl = NULL;
static EGLClient_glesInterface * s_gl = NULL;
void finish()
{
}
EGLClient_glesInterface * init_emul_gles(EGLClient_eglInterface *eglIface)
{
s_egl = eglIface;
if (!s_gl) {
s_gl = new EGLClient_glesInterface();
s_gl->getProcAddress = NULL; //TODO: what goes here?
s_gl->finish = finish;
}
return s_gl;
}