JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL43_nglGetObjectPtrLabel(JNIEnv *__env, jclass clazz, jlong ptrAddress, jint bufSize, jlong lengthAddress, jlong labelAddress, jlong __functionAddress) {
	void *ptr = (void *)(intptr_t)ptrAddress;
	GLsizei *length = (GLsizei *)(intptr_t)lengthAddress;
	GLchar *label = (GLchar *)(intptr_t)labelAddress;
	glGetObjectPtrLabelPROC glGetObjectPtrLabel = (glGetObjectPtrLabelPROC)(intptr_t)__functionAddress;
	UNUSED_PARAMS(__env, clazz)
	glGetObjectPtrLabel(ptr, bufSize, length, label);
}
JNIEXPORT void JNICALL Java_org_lwjgl_opengles_GLES32_nglGetObjectPtrLabel__JIJJ(JNIEnv *__env, jclass clazz, jlong ptrAddress, jint bufSize, jlong lengthAddress, jlong labelAddress) {
    glGetObjectPtrLabelPROC glGetObjectPtrLabel = (glGetObjectPtrLabelPROC)tlsGetFunction(326);
    intptr_t ptr = (intptr_t)ptrAddress;
    intptr_t length = (intptr_t)lengthAddress;
    intptr_t label = (intptr_t)labelAddress;
    UNUSED_PARAM(clazz)
    glGetObjectPtrLabel(ptr, bufSize, length, label);
}
Ejemplo n.º 3
0
std::string sync_object_label(const sync& sync_object)
{
  GLint size;
  glGetIntegerv(GL_MAX_LABEL_LENGTH, &size);
  std::string label;
  label.resize(size);
  glGetObjectPtrLabel(sync_object.id(), size, nullptr, &label[0]);
  return label;
}
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL43_nglGetObjectPtrLabel(JNIEnv *env, jclass clazz, jlong ptr, jint bufSize, jlong length, jlong label, jlong function_pointer) {
	GLsizei *length_address = (GLsizei *)(intptr_t)length;
	GLchar *label_address = (GLchar *)(intptr_t)label;
	glGetObjectPtrLabelPROC glGetObjectPtrLabel = (glGetObjectPtrLabelPROC)((intptr_t)function_pointer);
	glGetObjectPtrLabel((GLvoid *)(intptr_t)ptr, bufSize, length_address, label_address);
}