org.lwjgl.bgfx.BGFXCacheWriteCallbackI 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.*;
/**
* Writes cached item.
*
* Type
*
*
* void (*) (
* bgfx_callback_interface_t *_this,
* uint64_t _id,
* void const *_data,
* uint32_t _size
* )
*/
@FunctionalInterface
@NativeType("void (*) (bgfx_callback_interface_t *, uint64_t, void const *, uint32_t)")
public interface BGFXCacheWriteCallbackI extends CallbackI.V {
String SIGNATURE = "(plpi)v";
@Override
default String getSignature() { return SIGNATURE; }
@Override
default void callback(long args) {
invoke(
dcbArgPointer(args),
dcbArgLongLong(args),
dcbArgPointer(args),
dcbArgInt(args)
);
}
/**
* Will be called to writes a cached item.
*
* @param _this the callback interface
* @param _id cache id
* @param _data data to write
* @param _size size of data to write
*/
void invoke(@NativeType("bgfx_callback_interface_t *") long _this, @NativeType("uint64_t") long _id, @NativeType("void const *") long _data, @NativeType("uint32_t") int _size);
}