All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.nuklear.NkValueGetterI Maven / Gradle / Ivy

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.nuklear;

import org.lwjgl.system.*;
import org.lwjgl.system.libffi.*;

import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.libffi.LibFFI.*;

/**
 * Instances of this interface may be passed to the {@link Nuklear#nk_plot_function plot_function} function.
 * 
 * 

Type

* *

 * float (*{@link #invoke}) (
 *     void *userdata,
 *     int index
 * )
*/ @FunctionalInterface @NativeType("nk_value_getter") public interface NkValueGetterI extends CallbackI { FFICIF CIF = apiCreateCIF( FFI_DEFAULT_ABI, ffi_type_float, ffi_type_pointer, ffi_type_sint32 ); @Override default FFICIF getCallInterface() { return CIF; } @Override default void callback(long ret, long args) { float __result = invoke( memGetAddress(memGetAddress(args)), memGetInt(memGetAddress(args + POINTER_SIZE)) ); apiClosureRet(ret, __result); } float invoke(@NativeType("void *") long userdata, int index); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy