
org.lwjgl.bgfx.BGFXCacheReadSizeCallbackI 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.*;
/** Returns size of cached item. Returns 0 if no cached item was found. */
@FunctionalInterface
public interface BGFXCacheReadSizeCallbackI extends CallbackI.I {
String SIGNATURE = "(pl)i";
@Override
default String getSignature() { return SIGNATURE; }
@Override
default int callback(long args) {
return invoke(
dcbArgPointer(args),
dcbArgLongLong(args)
);
}
/**
* Will be called to determine size of cached item.
*
* @param _this the callback interface
* @param _id cache id
*
* @return number of bytes to read
*/
int invoke(long _this, long _id);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy