All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.bgfx.BGFXScreenShotCallbackI Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 3.3.6
Show newest version
/*
 * 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. */
@FunctionalInterface
@NativeType("screen_shot")
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 to next line
     * @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("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);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy