Top Description Inners Constructors Methods
org.lwjgl.bgfx

public abstract Class BGFXScreenShotCallback

extends Callback
implements BGFXScreenShotCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.bgfx.BGFXScreenShotCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.bgfx.BGFXScreenShotCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Screenshot captured. Screenshot format is always 4-byte BGRA.

Type


void (*invoke) (
    bgfx_callback_interface_t *_this,
    char const *_filePath,
    uint32_t _width,
    uint32_t _height,
    uint32_t _pitch,
    void const *_data,
    uint32_t _size,
    bool _yflip
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
BGFXScreenShotCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static BGFXScreenShotCallback

Returns:

the new BGFXScreenShotCallback
create
(long functionPointer)

Creates a BGFXScreenShotCallback instance from the specified function pointer.

public static BGFXScreenShotCallback
create(BGFXScreenShotCallbackI instance)

Creates a BGFXScreenShotCallback instance that delegates to the specified BGFXScreenShotCallbackI instance.

public static BGFXScreenShotCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

BGFXScreenShotCallbackback to summary
protected BGFXScreenShotCallback()
BGFXScreenShotCallbackback to summary
pack-priv BGFXScreenShotCallback(long functionPointer)

Method Detail

createback to summary
public static BGFXScreenShotCallback create(long functionPointer)

Creates a BGFXScreenShotCallback instance from the specified function pointer.

Returns:BGFXScreenShotCallback

the new BGFXScreenShotCallback

createback to summary
public static BGFXScreenShotCallback create(BGFXScreenShotCallbackI instance)

Creates a BGFXScreenShotCallback instance that delegates to the specified BGFXScreenShotCallbackI instance.

createSafeback to summary
public static BGFXScreenShotCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.bgfx back to summary

private final Class BGFXScreenShotCallback.Container

extends BGFXScreenShotCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final BGFXScreenShotCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, BGFXScreenShotCallbackI delegate)

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the callback interface
_this
,
long
file path
_filePath
,
int
image width
_width
,
int
image height
_height
,
int
number of bytes to skip between the start of each horizontal line of the image
_pitch
,
long
image data
_data
,
int
image size
_size
,
boolean
if true, image origin is bottom left
_yflip
)

Implements org.lwjgl.bgfx.BGFXScreenShotCallbackI.invoke.

Inherited from org.lwjgl.bgfx.BGFXScreenShotCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final BGFXScreenShotCallbackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, BGFXScreenShotCallbackI delegate)

Method Detail

invokeback to summary
public void invoke(long _this, long _filePath, int _width, int _height, int _pitch, long _data, int _size, boolean _yflip)

Implements org.lwjgl.bgfx.BGFXScreenShotCallbackI.invoke.

Parameters
_this:long

Doc from org.lwjgl.bgfx.BGFXScreenShotCallbackI.invoke.

the callback interface

_filePath:long

Doc from org.lwjgl.bgfx.BGFXScreenShotCallbackI.invoke.

file path

_width:int

Doc from org.lwjgl.bgfx.BGFXScreenShotCallbackI.invoke.

image width

_height:int

Doc from org.lwjgl.bgfx.BGFXScreenShotCallbackI.invoke.

image height

_pitch:int

Doc from org.lwjgl.bgfx.BGFXScreenShotCallbackI.invoke.

number of bytes to skip between the start of each horizontal line of the image

_data:long

Doc from org.lwjgl.bgfx.BGFXScreenShotCallbackI.invoke.

image data

_size:int

Doc from org.lwjgl.bgfx.BGFXScreenShotCallbackI.invoke.

image size

_yflip:boolean

Doc from org.lwjgl.bgfx.BGFXScreenShotCallbackI.invoke.

if true, image origin is bottom left

Annotations
@Override