org.lwjgl.bgfx.BGFXTraceVarArgsCallback 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.jspecify.annotations.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.MemoryUtil.*;
/**
* Prints a debug message.
*
* Not thread safe and it can be called from any thread.
*
* Type
*
*
* void (*{@link #invoke}) (
* bgfx_callback_interface_t *_this,
* char const *_filePath,
* uint16_t _line,
* char const *_format,
* va_list _argList
* )
*/
public abstract class BGFXTraceVarArgsCallback extends Callback implements BGFXTraceVarArgsCallbackI {
/**
* Creates a {@code BGFXTraceVarArgsCallback} instance from the specified function pointer.
*
* @return the new {@code BGFXTraceVarArgsCallback}
*/
public static BGFXTraceVarArgsCallback create(long functionPointer) {
BGFXTraceVarArgsCallbackI instance = Callback.get(functionPointer);
return instance instanceof BGFXTraceVarArgsCallback
? (BGFXTraceVarArgsCallback)instance
: new Container(functionPointer, instance);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code functionPointer} is {@code NULL}. */
public static @Nullable BGFXTraceVarArgsCallback createSafe(long functionPointer) {
return functionPointer == NULL ? null : create(functionPointer);
}
/** Creates a {@code BGFXTraceVarArgsCallback} instance that delegates to the specified {@code BGFXTraceVarArgsCallbackI} instance. */
public static BGFXTraceVarArgsCallback create(BGFXTraceVarArgsCallbackI instance) {
return instance instanceof BGFXTraceVarArgsCallback
? (BGFXTraceVarArgsCallback)instance
: new Container(instance.address(), instance);
}
protected BGFXTraceVarArgsCallback() {
super(CIF);
}
BGFXTraceVarArgsCallback(long functionPointer) {
super(functionPointer);
}
private static final class Container extends BGFXTraceVarArgsCallback {
private final BGFXTraceVarArgsCallbackI delegate;
Container(long functionPointer, BGFXTraceVarArgsCallbackI delegate) {
super(functionPointer);
this.delegate = delegate;
}
@Override
public void invoke(long _this, long _filePath, short _line, long _format, long _argList) {
delegate.invoke(_this, _filePath, _line, _format, _argList);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy