Top Description Fields Constructors Methods
org.lwjgl.bgfx

public Class BGFXInternalData

extends Struct<BGFXInternalData>
Class Inheritance
Annotations
@NativeType:struct bgfx_internal_data_t
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Internal data.

Layout


struct bgfx_internal_data_t {
    bgfx_caps_t * caps;
    void * context;
}

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CAPS

The struct member offsets.

public static final int
CONTEXT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
BGFXInternalData(long address, ByteBuffer container)

public
BGFXInternalData(ByteBuffer container)

Creates a BGFXInternalData instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public BGFXCaps
caps()

renderer capabilities

public long
context()

GL context, or D3D device

protected BGFXInternalData
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static BGFXInternalData
create(long address)

Returns a new BGFXInternalData instance for the specified memory address.

public static BGFXInternalData
createSafe(long address)

Like create, but returns null if address is NULL.

public static BGFXCaps
ncaps(long struct)

Unsafe version of caps.

public static long
ncontext(long struct)

Unsafe version of context.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

CAPSback to summary
public static final int CAPS

The struct member offsets.

CONTEXTback to summary
public static final int CONTEXT

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

Constructor Detail

BGFXInternalDataback to summary
protected BGFXInternalData(long address, ByteBuffer container)
BGFXInternalDataback to summary
public BGFXInternalData(ByteBuffer container)

Creates a BGFXInternalData instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

The created instance holds a strong reference to the container object.

Method Detail

capsback to summary
public BGFXCaps caps()

renderer capabilities

Annotations
@NativeType:bgfx_caps_t *
contextback to summary
public long context()

GL context, or D3D device

Annotations
@NativeType:void *
createback to summary
protected BGFXInternalData create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static BGFXInternalData create(long address)

Returns a new BGFXInternalData instance for the specified memory address.

createSafeback to summary
public static BGFXInternalData createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
ncapsback to summary
public static BGFXCaps ncaps(long struct)

Unsafe version of caps.

ncontextback to summary
public static long ncontext(long struct)

Unsafe version of context.

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override