remove the gl{Vertex|Color|TexCoord|Normal}PointerBounds() "extension" fro eglext.h
This commit is contained in:
@@ -24,6 +24,19 @@
|
|||||||
#include <GLES/gl.h>
|
#include <GLES/gl.h>
|
||||||
#include <GLES/glext.h>
|
#include <GLES/glext.h>
|
||||||
|
|
||||||
|
/* special calls implemented in Android's GLES wrapper used to more
|
||||||
|
* efficiently bound-check passed arrays */
|
||||||
|
extern "C" {
|
||||||
|
GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
|
||||||
|
const GLvoid *ptr, GLsizei count);
|
||||||
|
GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
|
||||||
|
const GLvoid *pointer, GLsizei count);
|
||||||
|
GL_API void GL_APIENTRY glTexCoordPointerBounds(GLint size, GLenum type,
|
||||||
|
GLsizei stride, const GLvoid *pointer, GLsizei count);
|
||||||
|
GL_API void GL_APIENTRY glVertexPointerBounds(GLint size, GLenum type,
|
||||||
|
GLsizei stride, const GLvoid *pointer, GLsizei count);
|
||||||
|
}
|
||||||
|
|
||||||
static int initialized = 0;
|
static int initialized = 0;
|
||||||
|
|
||||||
static jclass nioAccessClass;
|
static jclass nioAccessClass;
|
||||||
|
|||||||
@@ -24,6 +24,19 @@
|
|||||||
#include <GLES/gl.h>
|
#include <GLES/gl.h>
|
||||||
#include <GLES/glext.h>
|
#include <GLES/glext.h>
|
||||||
|
|
||||||
|
/* special calls implemented in Android's GLES wrapper used to more
|
||||||
|
* efficiently bound-check passed arrays */
|
||||||
|
extern "C" {
|
||||||
|
GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
|
||||||
|
const GLvoid *ptr, GLsizei count);
|
||||||
|
GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
|
||||||
|
const GLvoid *pointer, GLsizei count);
|
||||||
|
GL_API void GL_APIENTRY glTexCoordPointerBounds(GLint size, GLenum type,
|
||||||
|
GLsizei stride, const GLvoid *pointer, GLsizei count);
|
||||||
|
GL_API void GL_APIENTRY glVertexPointerBounds(GLint size, GLenum type,
|
||||||
|
GLsizei stride, const GLvoid *pointer, GLsizei count);
|
||||||
|
}
|
||||||
|
|
||||||
static int initialized = 0;
|
static int initialized = 0;
|
||||||
|
|
||||||
static jclass nioAccessClass;
|
static jclass nioAccessClass;
|
||||||
|
|||||||
@@ -599,21 +599,6 @@ typedef void (GL_APIENTRYP PFNGLGETTEXGENXVOESPROC) (GLenum coord, GLenum pname,
|
|||||||
#define GL_EXT_texture_filter_anisotropic 1
|
#define GL_EXT_texture_filter_anisotropic 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*------------------------------------------------------------------------*
|
|
||||||
* dalvik extension functions
|
|
||||||
*------------------------------------------------------------------------*/
|
|
||||||
#ifdef ANDROID
|
|
||||||
GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
|
|
||||||
const GLvoid *ptr, GLsizei count);
|
|
||||||
GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
|
|
||||||
const GLvoid *pointer, GLsizei count);
|
|
||||||
GL_API void GL_APIENTRY glTexCoordPointerBounds(GLint size, GLenum type,
|
|
||||||
GLsizei stride, const GLvoid *pointer, GLsizei count);
|
|
||||||
GL_API void GL_APIENTRY glVertexPointerBounds(GLint size, GLenum type,
|
|
||||||
GLsizei stride, const GLvoid *pointer, GLsizei count);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -37,6 +37,17 @@ using namespace android;
|
|||||||
// extensions for the framework
|
// extensions for the framework
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
|
||||||
|
const GLvoid *ptr, GLsizei count);
|
||||||
|
GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
|
||||||
|
const GLvoid *pointer, GLsizei count);
|
||||||
|
GL_API void GL_APIENTRY glTexCoordPointerBounds(GLint size, GLenum type,
|
||||||
|
GLsizei stride, const GLvoid *pointer, GLsizei count);
|
||||||
|
GL_API void GL_APIENTRY glVertexPointerBounds(GLint size, GLenum type,
|
||||||
|
GLsizei stride, const GLvoid *pointer, GLsizei count);
|
||||||
|
}
|
||||||
|
|
||||||
void glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
|
void glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
|
||||||
const GLvoid *ptr, GLsizei count) {
|
const GLvoid *ptr, GLsizei count) {
|
||||||
glColorPointer(size, type, stride, ptr);
|
glColorPointer(size, type, stride, ptr);
|
||||||
|
|||||||
@@ -23,6 +23,19 @@
|
|||||||
#include <GLES/gl.h>
|
#include <GLES/gl.h>
|
||||||
#include <GLES/glext.h>
|
#include <GLES/glext.h>
|
||||||
|
|
||||||
|
/* special calls implemented in Android's GLES wrapper used to more
|
||||||
|
* efficiently bound-check passed arrays */
|
||||||
|
extern "C" {
|
||||||
|
GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
|
||||||
|
const GLvoid *ptr, GLsizei count);
|
||||||
|
GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
|
||||||
|
const GLvoid *pointer, GLsizei count);
|
||||||
|
GL_API void GL_APIENTRY glTexCoordPointerBounds(GLint size, GLenum type,
|
||||||
|
GLsizei stride, const GLvoid *pointer, GLsizei count);
|
||||||
|
GL_API void GL_APIENTRY glVertexPointerBounds(GLint size, GLenum type,
|
||||||
|
GLsizei stride, const GLvoid *pointer, GLsizei count);
|
||||||
|
}
|
||||||
|
|
||||||
static int initialized = 0;
|
static int initialized = 0;
|
||||||
|
|
||||||
static jclass nioAccessClass;
|
static jclass nioAccessClass;
|
||||||
|
|||||||
@@ -23,6 +23,19 @@
|
|||||||
#include <GLES/gl.h>
|
#include <GLES/gl.h>
|
||||||
#include <GLES/glext.h>
|
#include <GLES/glext.h>
|
||||||
|
|
||||||
|
/* special calls implemented in Android's GLES wrapper used to more
|
||||||
|
* efficiently bound-check passed arrays */
|
||||||
|
extern "C" {
|
||||||
|
GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
|
||||||
|
const GLvoid *ptr, GLsizei count);
|
||||||
|
GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
|
||||||
|
const GLvoid *pointer, GLsizei count);
|
||||||
|
GL_API void GL_APIENTRY glTexCoordPointerBounds(GLint size, GLenum type,
|
||||||
|
GLsizei stride, const GLvoid *pointer, GLsizei count);
|
||||||
|
GL_API void GL_APIENTRY glVertexPointerBounds(GLint size, GLenum type,
|
||||||
|
GLsizei stride, const GLvoid *pointer, GLsizei count);
|
||||||
|
}
|
||||||
|
|
||||||
static int initialized = 0;
|
static int initialized = 0;
|
||||||
|
|
||||||
static jclass nioAccessClass;
|
static jclass nioAccessClass;
|
||||||
|
|||||||
Reference in New Issue
Block a user