org.lwjgl.bgfx.BGFXReleaseFunctionCallbackI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-bgfx Show documentation
Show all versions of lwjgl-bgfx Show documentation
A cross-platform, graphics API agnostic rendering library. It provides a high performance, low level abstraction for common platform graphics APIs like OpenGL, Direct3D and Apple Metal.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.bgfx;
import org.lwjgl.system.*;
import static org.lwjgl.system.dyncall.DynCallback.*;
/**
* Instances of this interface may be passed to the {@link BGFX#bgfx_make_ref_release make_ref_release} method.
*
* Type
*
*
* void (*) (
* void *_ptr,
* void *_userData
* )
*/
@FunctionalInterface
@NativeType("bgfx_release_fn_t")
public interface BGFXReleaseFunctionCallbackI extends CallbackI.V {
String SIGNATURE = "(pp)v";
@Override
default String getSignature() { return SIGNATURE; }
@Override
default void callback(long args) {
invoke(
dcbArgPointer(args),
dcbArgPointer(args)
);
}
/**
* Memory release callback.
*
* @param _ptr pointer to allocated data
* @param _userData user defined data if needed
*/
void invoke(@NativeType("void *") long _ptr, @NativeType("void *") long _userData);
}