#include "gl.h"
#include "glesinterface.h"
+#include "nanogl.h"
#define GL_TEXTURE0_ARB 0x84C0
#define GL_TEXTURE1_ARB 0x84C1
ptrIndexArray = indexArray;
useTexCoordArray = GL_FALSE;
}
-
+void nanoGL_Flush()
+ {
+ FlushOnStateChange();
+ }
+void nanoGL_Reset()
+{
+ ResetNanoState();
+}
void glBegin(GLenum mode)
{
wrapperPrimitiveMode = mode;
GLenum glGetError (void)
{
- FlushOnStateChange();
+ //FlushOnStateChange();
return GL_NO_ERROR;//glEsImpl->glGetError();
}
LOGE ("Called unimplemented OpenGL ES API\n");
}
+void *nanoGL_GetProcAddress(const char *name)
+{
+ return dlsym(glesLib, name);
+}
static int CreateGlEsInterface( const char * name, void * lib, void * lib1, void * default_func )
{
{
void * f;
- f = dlsym(lib, *api); // ltry ibGLESxx_CM.so
+ f = dlsym(lib, *api); // try libGLESxx_CM.so
if (f == NULL) {
LOGW( "<%s> not found in %s. Trying libEGL.so.", *api, name); //driver);