org.lwjgl.bgfx.BGFXProfilerBeginI 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 org.lwjgl.system.libffi.*;
import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.libffi.LibFFI.*;
/**
* Profiler region begin.
*
* Type
*
*
* void (*{@link #invoke}) (
* bgfx_callback_interface_t *_this,
* char const *_name,
* uint32_t _abgr,
* char const *_filePath,
* uint16_t _line
* )
*/
@FunctionalInterface
@NativeType("void (*) (bgfx_callback_interface_t *, char const *, uint32_t, char const *, uint16_t)")
public interface BGFXProfilerBeginI extends CallbackI {
FFICIF CIF = apiCreateCIF(
FFI_DEFAULT_ABI,
ffi_type_void,
ffi_type_pointer, ffi_type_pointer, ffi_type_uint32, ffi_type_pointer, ffi_type_uint16
);
@Override
default FFICIF getCallInterface() { return CIF; }
@Override
default void callback(long ret, long args) {
invoke(
memGetAddress(memGetAddress(args)),
memGetAddress(memGetAddress(args + POINTER_SIZE)),
memGetInt(memGetAddress(args + 2 * POINTER_SIZE)),
memGetAddress(memGetAddress(args + 3 * POINTER_SIZE)),
memGetShort(memGetAddress(args + 4 * POINTER_SIZE))
);
}
/**
* Will be called when a profiler region begins.
*
* Not thread safe and it can be called from any thread.
*
* @param _this the callback interface
* @param _name region name, contains dynamic string
* @param _abgr color of profiler region
* @param _filePath file path where {@code profiler_begin} was called
* @param _line line where {@code profiler_begin} was called
*/
void invoke(@NativeType("bgfx_callback_interface_t *") long _this, @NativeType("char const *") long _name, @NativeType("uint32_t") int _abgr, @NativeType("char const *") long _filePath, @NativeType("uint16_t") short _line);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy