diff --git a/bindings/bf/bgfx.bf b/bindings/bf/bgfx.bf index 6fb2ed9dc5..2c84223019 100644 --- a/bindings/bf/bgfx.bf +++ b/bindings/bf/bgfx.bf @@ -1,5 +1,5 @@ /* - * Copyright 2011-2023 Branimir Karadzic. All rights reserved. + * Copyright 2011-2024 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE */ @@ -2564,6 +2564,12 @@ public static class bgfx [LinkName("bgfx_get_renderer_name")] public static extern char8* get_renderer_name(RendererType _type); + /// + /// Fill bgfx::Init struct with default values, before using it to initialize the library. + /// + /// + /// Pointer to structure to be initialized. See: `bgfx::Init` for more info. + /// [LinkName("bgfx_init_ctor")] public static extern void init_ctor(Init* _init); diff --git a/bindings/cs/bgfx.cs b/bindings/cs/bgfx.cs index 64fd470b30..530453ad87 100644 --- a/bindings/cs/bgfx.cs +++ b/bindings/cs/bgfx.cs @@ -1,5 +1,5 @@ /* - * Copyright 2011-2023 Branimir Karadzic. All rights reserved. + * Copyright 2011-2024 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE */ @@ -2516,6 +2516,12 @@ public struct VertexLayoutHandle { [DllImport(DllName, EntryPoint="bgfx_get_renderer_name", CallingConvention = CallingConvention.Cdecl)] public static extern unsafe IntPtr get_renderer_name(RendererType _type); + /// + /// Fill bgfx::Init struct with default values, before using it to initialize the library. + /// + /// + /// Pointer to structure to be initialized. See: `bgfx::Init` for more info. + /// [DllImport(DllName, EntryPoint="bgfx_init_ctor", CallingConvention = CallingConvention.Cdecl)] public static extern unsafe void init_ctor(Init* _init); diff --git a/bindings/cs/bgfx_dllname.cs b/bindings/cs/bgfx_dllname.cs index 32418ce4a5..7ba7c3c7db 100644 --- a/bindings/cs/bgfx_dllname.cs +++ b/bindings/cs/bgfx_dllname.cs @@ -1,5 +1,5 @@ /* - * Copyright 2011-2023 Branimir Karadzic. All rights reserved. + * Copyright 2011-2024 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE */ diff --git a/bindings/zig/bgfx.zig b/bindings/zig/bgfx.zig index 9f09d94098..a535fd5a18 100644 --- a/bindings/zig/bgfx.zig +++ b/bindings/zig/bgfx.zig @@ -1,4 +1,4 @@ -// Copyright 2011-2023 Branimir Karadzic. All rights reserved. +// Copyright 2011-2024 Branimir Karadzic. All rights reserved. // License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE @@ -2058,6 +2058,8 @@ pub inline fn getRendererName(_type: RendererType) [*c]const u8 { } extern fn bgfx_get_renderer_name(_type: RendererType) [*c]const u8; +/// Fill bgfx::Init struct with default values, before using it to initialize the library. +/// Pointer to structure to be initialized. See: `bgfx::Init` for more info. pub inline fn initCtor(_init: [*c]Init) void { return bgfx_init_ctor(_init); } diff --git a/include/bgfx/c99/bgfx.h b/include/bgfx/c99/bgfx.h index a1f5ff0b6d..815ea8fdd6 100644 --- a/include/bgfx/c99/bgfx.h +++ b/include/bgfx/c99/bgfx.h @@ -1128,6 +1128,13 @@ BGFX_C_API uint8_t bgfx_get_supported_renderers(uint8_t _max, bgfx_renderer_type * */ BGFX_C_API const char* bgfx_get_renderer_name(bgfx_renderer_type_t _type); + +/** + * Fill bgfx::Init struct with default values, before using it to initialize the library. + * + * @param[in] _init Pointer to structure to be initialized. See: `bgfx::Init` for more info. + * + */ BGFX_C_API void bgfx_init_ctor(bgfx_init_t* _init); /** diff --git a/src/version.h b/src/version.h index f1988fd0e4..ae1ae90742 100644 --- a/src/version.h +++ b/src/version.h @@ -9,5 +9,5 @@ * */ -#define BGFX_REV_NUMBER 8617 -#define BGFX_REV_SHA1 "9612f6d14732ff7077f0d4aafe53a55dff7f05bd" +#define BGFX_REV_NUMBER 8674 +#define BGFX_REV_SHA1 "83dfadf673251c09dabb0ef4773b8176579b0551"