786 |
releaseWindow(); |
releaseWindow(); |
787 |
} |
} |
788 |
|
|
789 |
JNIEXPORT jint JNICALL Java_gzz_gfx_gl_GL_impl_1ByteVector_1get |
JNIEXPORT jint JNICALL Java_gzz_gfx_gl_GL_impl_1ByteVector_1get__II |
790 |
(JNIEnv *env, jclass, jint id, jint ind) { |
(JNIEnv *env, jclass, jint id, jint ind) { |
791 |
return (*bytevectors[id])[ind]; |
return (*bytevectors[id])[ind]; |
792 |
} |
} |
793 |
|
|
794 |
|
JNIEXPORT jbyteArray JNICALL Java_gzz_gfx_gl_GL_impl_1ByteVector_1get__I |
795 |
|
(JNIEnv *env, jclass, jint id) { |
796 |
|
int len = bytevectors[id]->size(); |
797 |
|
jbyteArray arr = env->NewByteArray(len); |
798 |
|
env->SetByteArrayRegion(arr, 0, len, (jbyte*) &(*(bytevectors[id]))[0]); |
799 |
|
return arr; |
800 |
|
} |
801 |
|
|
802 |
|
|
803 |
// Renderable |
// Renderable |
804 |
|
|