org.lwjgl.opengl.GLDebugMessageAMDCallbackI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.lwjgl.opengl Show documentation
Show all versions of org.lwjgl.opengl Show documentation
LWJGL OSGi bundle (OpenGL bindings)
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengl;
import org.lwjgl.system.*;
import static org.lwjgl.system.dyncall.DynCallback.*;
/** Instances of this interface may be passed to the {@link AMDDebugOutput#glDebugMessageCallbackAMD DebugMessageCallbackAMD} method. */
@FunctionalInterface
public interface GLDebugMessageAMDCallbackI extends CallbackI.V {
String SIGNATURE = Callback.__stdcall("(iiiipp)v");
@Override
default String getSignature() { return SIGNATURE; }
@Override
default void callback(long args) {
invoke(
dcbArgInt(args),
dcbArgInt(args),
dcbArgInt(args),
dcbArgInt(args),
dcbArgPointer(args),
dcbArgPointer(args)
);
}
/**
* Will be called when a debug message is generated.
*
* @param id the message ID
* @param category the message category
* @param severity the message severity
* @param length the message length, excluding the null-terminator
* @param message a pointer to the message string representation
* @param userParam the user-specified value that was passed when calling {@link AMDDebugOutput#glDebugMessageCallbackAMD DebugMessageCallbackAMD}
*/
void invoke(int id, int category, int severity, int length, long message, long userParam);
}