org.lwjgl.bgfx.BGFXScreenShotCallbackI 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.*;
/**
* Screenshot captured. Screenshot format is always 4-byte BGRA.
*
* Type
*
*
* void (*) (
* bgfx_callback_interface_t *_this,
* const char *_filePath,
* uint32_t _width,
* uint32_t _height,
* uint32_t _pitch,
* const void *_data,
* uint32_t _size,
* bool _yflip
* )
*/
@FunctionalInterface
@NativeType("void (*) (bgfx_callback_interface_t *, const char *, uint32_t, uint32_t, uint32_t, const void *, uint32_t, bool)")
public interface BGFXScreenShotCallbackI extends CallbackI.V {
String SIGNATURE = "(ppiiipiB)v";
@Override
default String getSignature() { return SIGNATURE; }
@Override
default void callback(long args) {
invoke(
dcbArgPointer(args),
dcbArgPointer(args),
dcbArgInt(args),
dcbArgInt(args),
dcbArgInt(args),
dcbArgPointer(args),
dcbArgInt(args),
dcbArgBool(args)
);
}
/**
* @param _this the callback interface
* @param _filePath file path
* @param _width image width
* @param _height image height
* @param _pitch number of bytes to skip between the start of each horizontal line of the image
* @param _data image data
* @param _size image size
* @param _yflip if true, image origin is bottom left
*/
void invoke(@NativeType("bgfx_callback_interface_t *") long _this, @NativeType("const char *") long _filePath, @NativeType("uint32_t") int _width, @NativeType("uint32_t") int _height, @NativeType("uint32_t") int _pitch, @NativeType("const void *") long _data, @NativeType("uint32_t") int _size, @NativeType("bool") boolean _yflip);
}