537 |
|
|
538 |
} |
} |
539 |
|
|
540 |
|
JNIEXPORT void JNICALL Java_gzz_gfx_gl_GL_impl_1Texture_1copyTexImage2D( |
541 |
|
JNIEnv *env, jclass, jint id, jstring bufferstr, |
542 |
|
jstring targetstr, jint level, |
543 |
|
jstring iforstring, jint x, jint y, jint w, jint h, |
544 |
|
jint border) { |
545 |
|
GLenum buffer = tokenFromJstring(env, bufferstr); |
546 |
|
GLenum target = tokenFromJstring(env, targetstr); |
547 |
|
GLenum ifor = tokenFromJstring(env, iforstring); |
548 |
|
glBindTexture(target, id); |
549 |
|
glReadBuffer(buffer); |
550 |
|
glCopyTexImage2D(target, level, ifor, x, y, w, h, border); |
551 |
|
glBindTexture(target, 0); |
552 |
|
GLERR |
553 |
|
} |
554 |
|
|
555 |
JNIEXPORT jint JNICALL Java_gzz_gfx_gl_GL_impl_1Texture_1shade |
JNIEXPORT jint JNICALL Java_gzz_gfx_gl_GL_impl_1Texture_1shade |
556 |
(JNIEnv *env, jclass, jint id, jint w, jint h, jint d, jint comp, |
(JNIEnv *env, jclass, jint id, jint w, jint h, jint d, jint comp, |
557 |
jstring internalFormat, |
jstring internalFormat, |