init.
struct bgfx_init_t {
bgfx_renderer_type_t type;
uint16_t vendorId;
uint16_t deviceId;
uint64_t capabilities;
bool debug;
bool profile;
bgfx_platform_data_t platformData;
bgfx_resolution_t resolution;
bgfx_init_limits_t limits;
bgfx_callback_interface_t * callback;
bgfx_allocator_interface_t * allocator;
}
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ALLOCATOR
The struct member offsets. |
| public static final int | CALLBACK
The struct member offsets. |
| public static final int | CAPABILITIES
The struct member offsets. |
| public static final int | DEBUG
The struct member offsets. |
| public static final int | DEVICEID
The struct member offsets. |
| public static final int | LIMITS
The struct member offsets. |
| public static final int | PLATFORMDATA
The struct member offsets. |
| public static final int | PROFILE
The struct member offsets. |
| public static final int | RESOLUTION
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TYPE
The struct member offsets. |
| public static final int | VENDORID
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | BGFXInit(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public BGFXAllocatorInterface | |
| public BGFXInit | allocator(BGFXAllocatorInterface value)
Sets the address of the specified |
| public BGFXCallbackInterface | |
| public BGFXInit | callback(BGFXCallbackInterface value)
Sets the address of the specified |
| public static BGFXInit | |
| public static BGFXInit | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static BGFXInit | |
| public static BGFXInit | |
| public long | |
| public BGFXInit | |
| protected BGFXInit | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static BGFXInit | |
| public static BGFXInit | |
| public static BGFXInit | |
| public boolean | |
| public BGFXInit | |
| public short | |
| public BGFXInit | |
| public BGFXInitLimits | |
| public BGFXInit | |
| public BGFXInit | |
| public static BGFXInit | |
| public static BGFXInit | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static BGFXInit | |
| public static BGFXInit | |
| public static BGFXAllocatorInterface | |
| public static void | |
| public static BGFXCallbackInterface | |
| public static void | |
| public static long | |
| public static void | |
| public static boolean | |
| public static void | |
| public static short | |
| public static void | |
| public static BGFXInitLimits | |
| public static void | |
| public static BGFXPlatformData | |
| public static void | |
| public static boolean | |
| public static void | |
| public static BGFXResolution | |
| public static void | |
| public static int | |
| public static void | |
| public static short | |
| public static void | |
| public BGFXPlatformData | |
| public BGFXInit | platformData(BGFXPlatformData value)
Copies the specified |
| public BGFXInit | platformData(Consumer<BGFXPlatformData> consumer)
Passes the |
| public boolean | |
| public BGFXInit | |
| public BGFXResolution | |
| public BGFXInit | |
| public BGFXInit | |
| public BGFXInit | set(int type, short vendorId, short deviceId, long capabilities, boolean debug, boolean profile, BGFXPlatformData platformData, BGFXResolution resolution, BGFXInitLimits limits, BGFXCallbackInterface callback, BGFXAllocatorInterface allocator)
Initializes this struct with the specified values. |
| public BGFXInit | |
| public int | |
| public int | |
| public BGFXInit | |
| public static void | |
| public short | |
| public BGFXInit |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ALLOCATOR | back to summary |
|---|---|
| public static final int ALLOCATOR The struct member offsets. | |
| CALLBACK | back to summary |
|---|---|
| public static final int CALLBACK The struct member offsets. | |
| CAPABILITIES | back to summary |
|---|---|
| public static final int CAPABILITIES The struct member offsets. | |
| DEBUG | back to summary |
|---|---|
| public static final int DEBUG The struct member offsets. | |
| DEVICEID | back to summary |
|---|---|
| public static final int DEVICEID The struct member offsets. | |
| LIMITS | back to summary |
|---|---|
| public static final int LIMITS The struct member offsets. | |
| PLATFORMDATA | back to summary |
|---|---|
| public static final int PLATFORMDATA The struct member offsets. | |
| PROFILE | back to summary |
|---|---|
| public static final int PROFILE The struct member offsets. | |
| RESOLUTION | back to summary |
|---|---|
| public static final int RESOLUTION The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| VENDORID | back to summary |
|---|---|
| public static final int VENDORID The struct member offsets. | |
| BGFXInit | back to summary |
|---|---|
| protected BGFXInit(long address, ByteBuffer container) | |
| BGFXInit | back to summary |
|---|---|
| public BGFXInit(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| allocator | back to summary |
|---|---|
| public BGFXAllocatorInterface allocator() custom allocator. When a custom allocator is not specified, bgfx uses the CRT allocator. Bgfx assumes custom allocator is thread safe.
| |
| allocator | back to summary |
|---|---|
| public BGFXInit allocator(BGFXAllocatorInterface value) Sets the address of the specified | |
| callback | back to summary |
|---|---|
| public BGFXCallbackInterface callback() provide application specific callback interface
| |
| callback | back to summary |
|---|---|
| public BGFXInit callback(BGFXCallbackInterface value) Sets the address of the specified | |
| calloc | back to summary |
|---|---|
| public static BGFXInit calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static BGFXInit calloc(MemoryStack stack) Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static BGFXInit callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static BGFXInit callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| capabilities | back to summary |
|---|---|
| public long capabilities() capabilities initialization mask (default:
| |
| capabilities | back to summary |
|---|---|
| public BGFXInit capabilities(long value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected BGFXInit create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static BGFXInit create() Returns a new | |
| create | back to summary |
|---|---|
| public static BGFXInit create(long address) Returns a new | |
| createSafe | back to summary |
|---|---|
| public static BGFXInit createSafe(long address) Like
| |
| debug | back to summary |
|---|---|
| public boolean debug() enable device for debugging
| |
| debug | back to summary |
|---|---|
| public BGFXInit debug(boolean value) Sets the specified value to the | |
| deviceId | back to summary |
|---|---|
| public short deviceId() device ID. If set to 0 it will select first device, or device with matching ID.
| |
| deviceId | back to summary |
|---|---|
| public BGFXInit deviceId(short value) Sets the specified value to the | |
| limits | back to summary |
|---|---|
| public BGFXInitLimits limits() configurable runtime limits parameters
| |
| limits | back to summary |
|---|---|
| public BGFXInit limits(BGFXInitLimits value) Copies the specified | |
| limits | back to summary |
|---|---|
| public BGFXInit limits(Consumer<BGFXInitLimits> consumer) | |
| malloc | back to summary |
|---|---|
| public static BGFXInit malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static BGFXInit malloc(MemoryStack stack) Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static BGFXInit mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static BGFXInit mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nallocator | back to summary |
|---|---|
| public static BGFXAllocatorInterface nallocator(long struct) Unsafe version of
| |
| nallocator | back to summary |
|---|---|
| public static void nallocator(long struct, BGFXAllocatorInterface value) Unsafe version of | |
| ncallback | back to summary |
|---|---|
| public static BGFXCallbackInterface ncallback(long struct) Unsafe version of
| |
| ncallback | back to summary |
|---|---|
| public static void ncallback(long struct, BGFXCallbackInterface value) Unsafe version of | |
| ncapabilities | back to summary |
|---|---|
| public static long ncapabilities(long struct) Unsafe version of | |
| ncapabilities | back to summary |
|---|---|
| public static void ncapabilities(long struct, long value) Unsafe version of | |
| ndebug | back to summary |
|---|---|
| public static boolean ndebug(long struct) Unsafe version of | |
| ndebug | back to summary |
|---|---|
| public static void ndebug(long struct, boolean value) Unsafe version of | |
| ndeviceId | back to summary |
|---|---|
| public static short ndeviceId(long struct) Unsafe version of | |
| ndeviceId | back to summary |
|---|---|
| public static void ndeviceId(long struct, short value) Unsafe version of | |
| nlimits | back to summary |
|---|---|
| public static BGFXInitLimits nlimits(long struct) Unsafe version of | |
| nlimits | back to summary |
|---|---|
| public static void nlimits(long struct, BGFXInitLimits value) Unsafe version of | |
| nplatformData | back to summary |
|---|---|
| public static BGFXPlatformData nplatformData(long struct) Unsafe version of | |
| nplatformData | back to summary |
|---|---|
| public static void nplatformData(long struct, BGFXPlatformData value) Unsafe version of | |
| nprofile | back to summary |
|---|---|
| public static boolean nprofile(long struct) Unsafe version of | |
| nprofile | back to summary |
|---|---|
| public static void nprofile(long struct, boolean value) Unsafe version of | |
| nresolution | back to summary |
|---|---|
| public static BGFXResolution nresolution(long struct) Unsafe version of | |
| nresolution | back to summary |
|---|---|
| public static void nresolution(long struct, BGFXResolution value) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static void ntype(long struct, int value) Unsafe version of | |
| nvendorId | back to summary |
|---|---|
| public static short nvendorId(long struct) Unsafe version of | |
| nvendorId | back to summary |
|---|---|
| public static void nvendorId(long struct, short value) Unsafe version of | |
| platformData | back to summary |
|---|---|
| public BGFXPlatformData platformData() platform data
| |
| platformData | back to summary |
|---|---|
| public BGFXInit platformData(BGFXPlatformData value) Copies the specified | |
| platformData | back to summary |
|---|---|
| public BGFXInit platformData(Consumer<BGFXPlatformData> consumer) Passes the | |
| profile | back to summary |
|---|---|
| public boolean profile() enable device for profiling
| |
| profile | back to summary |
|---|---|
| public BGFXInit profile(boolean value) Sets the specified value to the | |
| resolution | back to summary |
|---|---|
| public BGFXResolution resolution() backbuffer resolution and reset parameters
| |
| resolution | back to summary |
|---|---|
| public BGFXInit resolution(BGFXResolution value) Copies the specified | |
| resolution | back to summary |
|---|---|
| public BGFXInit resolution(Consumer<BGFXResolution> consumer) Passes the | |
| set | back to summary |
|---|---|
| public BGFXInit set(int type, short vendorId, short deviceId, long capabilities, boolean debug, boolean profile, BGFXPlatformData platformData, BGFXResolution resolution, BGFXInitLimits limits, BGFXCallbackInterface callback, BGFXAllocatorInterface allocator) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public BGFXInit set(BGFXInit src) Copies the specified struct data to this struct. | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| type | back to summary |
|---|---|
| public int type() select rendering backend. When set to
| |
| type | back to summary |
|---|---|
| public BGFXInit type(int value) Sets the specified value to the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
| vendorId | back to summary | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| public short vendorId() vendor PCI id. If set to
| |||||||||
| vendorId | back to summary |
|---|---|
| public BGFXInit vendorId(short value) Sets the specified value to the | |