mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 12:42:34 +01:00
Updated version.
This commit is contained in:
@@ -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);
|
||||
|
||||
/// <summary>
|
||||
/// Fill bgfx::Init struct with default values, before using it to initialize the library.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="_init">Pointer to structure to be initialized. See: `bgfx::Init` for more info.</param>
|
||||
///
|
||||
[LinkName("bgfx_init_ctor")]
|
||||
public static extern void init_ctor(Init* _init);
|
||||
|
||||
|
||||
@@ -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 static partial class bgfx
|
||||
[DllImport(DllName, EntryPoint="bgfx_get_renderer_name", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern unsafe IntPtr get_renderer_name(RendererType _type);
|
||||
|
||||
/// <summary>
|
||||
/// Fill bgfx::Init struct with default values, before using it to initialize the library.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="_init">Pointer to structure to be initialized. See: `bgfx::Init` for more info.</param>
|
||||
///
|
||||
[DllImport(DllName, EntryPoint="bgfx_init_ctor", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern unsafe void init_ctor(Init* _init);
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
@@ -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.
|
||||
/// <param name="_init">Pointer to structure to be initialized. See: `bgfx::Init` for more info.</param>
|
||||
pub inline fn initCtor(_init: [*c]Init) void {
|
||||
return bgfx_init_ctor(_init);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user