summaryrefslogtreecommitdiffstats
path: root/opengl/tools/glgen/stubs/gles11/glMapBufferRange.cpp
blob: 248564232ba5c0dbb8cbd136f9c1e66697843e2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* GLvoid * glMapBufferRange ( GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access ) */
static jobject
android_glMapBufferRange__IIII
  (JNIEnv *_env, jobject _this, jint target, jint offset, jint length, jint access) {
    GLvoid* _p = glMapBufferRange((GLenum)target,
            (GLintptr)offset, (GLsizeiptr)length, (GLbitfield)access);
    jobject _buf = (jobject)0;
    if (_p) {
        _buf = _env->NewDirectByteBuffer(_p, length);
    }
    return _buf;
}