Fixed IDL, added C++ IDL template.

This commit is contained in:
Бранимир Караџић
2024-11-12 20:19:52 -08:00
parent 4bc652939f
commit fe41532c40
13 changed files with 415 additions and 40 deletions

View File

@@ -2434,15 +2434,6 @@ public static class bgfx
[LinkName("bgfx_vertex_layout_decode")]
public static extern void vertex_layout_decode(VertexLayout* _this, Attrib _attrib, uint8 * _num, AttribType* _type, bool* _normalized, bool* _asInt);
/// <summary>
/// Returns `true` if VertexLayout contains attribute.
/// </summary>
///
/// <param name="_attrib">Attribute semantics. See: `bgfx::Attrib`</param>
///
[LinkName("bgfx_vertex_layout_has")]
public static extern bool vertex_layout_has(VertexLayout* _this, Attrib _attrib);
/// <summary>
/// Skip `_num` bytes in vertex stream.
/// </summary>
@@ -3473,6 +3464,19 @@ public static class bgfx
[LinkName("bgfx_set_palette_color")]
public static extern void set_palette_color(uint8 _index, float _rgba);
/// <summary>
/// Set palette color value.
/// </summary>
///
/// <param name="_index">Index into palette.</param>
/// <param name="_r">Red value (RGBA floating point values)</param>
/// <param name="_g">Green value (RGBA floating point values)</param>
/// <param name="_b">Blue value (RGBA floating point values)</param>
/// <param name="_a">Alpha value (RGBA floating point values)</param>
///
[LinkName("bgfx_set_palette_color_rgba32f")]
public static extern void set_palette_color_rgba32f(uint8 _index, float _r, float _g, float _b, float _a);
/// <summary>
/// Set palette color value.
/// </summary>