org.lwjgl.bgfx.BGFXProfilerBeginLiteralI 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.*;
/**
* Profiler region begin with string literal name.
*
* Type
*
*
* void (*) (
* bgfx_callback_interface_t *_this,
* const char *_name,
* uint32_t _abgr,
* const char *_filePath,
* uint16_t _line
* )
*/
@FunctionalInterface
@NativeType("void (*) (bgfx_callback_interface_t *, const char *, uint32_t, const char *, uint16_t)")
public interface BGFXProfilerBeginLiteralI extends CallbackI.V {
String SIGNATURE = "(ppips)v";
@Override
default String getSignature() { return SIGNATURE; }
@Override
default void callback(long args) {
invoke(
dcbArgPointer(args),
dcbArgPointer(args),
dcbArgInt(args),
dcbArgPointer(args),
dcbArgShort(args)
);
}
/**
* Will be called when a profiler region with string literal begins.
*
* Not thread safe and it can be called from any thread.
*
* @param _this the callback interface
* @param _name region name, contains string literal
* @param _abgr color of profiler region
* @param _filePath file path where {@code profiler_begin_literal} was called
* @param _line line where {@code profiler_begin_literal} was called
*/
void invoke(@NativeType("bgfx_callback_interface_t *") long _this, @NativeType("const char *") long _name, @NativeType("uint32_t") int _abgr, @NativeType("const char *") long _filePath, @NativeType("uint16_t") short _line);
}