JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL43_nglObjectPtrLabel(JNIEnv *__env, jclass clazz, jlong ptrAddress, jint length, jlong labelAddress, jlong __functionAddress) {
	void *ptr = (void *)(intptr_t)ptrAddress;
	const GLchar *label = (const GLchar *)(intptr_t)labelAddress;
	glObjectPtrLabelPROC glObjectPtrLabel = (glObjectPtrLabelPROC)(intptr_t)__functionAddress;
	UNUSED_PARAMS(__env, clazz)
	glObjectPtrLabel(ptr, length, label);
}
JNIEXPORT void JNICALL Java_org_lwjgl_opengles_GLES32_nglObjectPtrLabel(JNIEnv *__env, jclass clazz, jlong ptrAddress, jint length, jlong labelAddress) {
    glObjectPtrLabelPROC glObjectPtrLabel = (glObjectPtrLabelPROC)tlsGetFunction(325);
    intptr_t ptr = (intptr_t)ptrAddress;
    intptr_t label = (intptr_t)labelAddress;
    UNUSED_PARAM(clazz)
    glObjectPtrLabel(ptr, length, label);
}
Beispiel #3
0
void set_sync_object_label(const sync& sync_object, const std::string& label)
{
  glObjectPtrLabel(sync_object.id(), static_cast<GLsizei>(label.size()), label.data());
}
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL43_nglObjectPtrLabel(JNIEnv *env, jclass clazz, jlong ptr, jint length, jlong label, jlong function_pointer) {
	const GLchar *label_address = (const GLchar *)(intptr_t)label;
	glObjectPtrLabelPROC glObjectPtrLabel = (glObjectPtrLabelPROC)((intptr_t)function_pointer);
	glObjectPtrLabel((GLvoid *)(intptr_t)ptr, length, label_address);
}