replicant-frameworks_native/opengl/tools/glgen/stubs/gles11/glGetBufferPointerv.cpp

12 lines
425 B
C++
Raw Normal View History

/* void glGetBufferPointerv ( GLenum target, GLenum pname, GLvoid** params ) */
static jobject
android_glGetBufferPointerv__II
(JNIEnv *_env, jobject _this, jint target, jint pname) {
GLint64 _mapLength;
GLvoid* _p;
glGetBufferParameteri64v((GLenum)target, GL_BUFFER_MAP_LENGTH, &_mapLength);
glGetBufferPointerv((GLenum)target, (GLenum)pname, &_p);
return _env->NewDirectByteBuffer(_p, _mapLength);
}