From 325499e4cf6911563ecf4ed4b181f5ad6d8dd3f1 Mon Sep 17 00:00:00 2001 From: Ioannis Tsakpinis Date: Mon, 15 May 2017 17:59:58 +0300 Subject: [PATCH] feat(bgfx): update to API version 41 --- doc/notes/3.1.2.md | 2 +- .../src/main/kotlin/org/lwjgl/bgfx/templates/BGFX.kt | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/notes/3.1.2.md b/doc/notes/3.1.2.md index 7465bc19eb..78d27c14fd 100644 --- a/doc/notes/3.1.2.md +++ b/doc/notes/3.1.2.md @@ -9,7 +9,7 @@ This build includes the following changes: - Added [OpenVR](https://github.com/ValveSoftware/openvr) bindings. - Added [Tiny OpenEXR](https://github.com/syoyo/tinyexr) bindings. - Added [Yoga](https://facebook.github.io/yoga/) bindings. -- bgfx: Updated to API version 40 (up from 34) +- bgfx: Updated to API version 41 (up from 34) - glfw: Updated to pre-release 3.3.0 version (up from 3.2.1). Includes many fixes and new features: * Last error code query (`glfwGetError`) * Requesting attention from the user (`glfwRequestWindowAttention`) diff --git a/modules/templates/src/main/kotlin/org/lwjgl/bgfx/templates/BGFX.kt b/modules/templates/src/main/kotlin/org/lwjgl/bgfx/templates/BGFX.kt index 58ce045a19..9a49d8fb34 100644 --- a/modules/templates/src/main/kotlin/org/lwjgl/bgfx/templates/BGFX.kt +++ b/modules/templates/src/main/kotlin/org/lwjgl/bgfx/templates/BGFX.kt @@ -16,7 +16,7 @@ val BGFX = "BGFX".nativeClass(packageName = BGFX_PACKAGE, prefix = "BGFX", prefi IntConstant( "API version", - "API_VERSION".."40" + "API_VERSION".."41" ) ShortConstant( @@ -1958,6 +1958,7 @@ val BGFX = "BGFX".nativeClass(packageName = BGFX_PACKAGE, prefix = "BGFX", prefi "set_vertex_buffer", "Sets vertex buffer for draw primitive.", + MapToInt..uint8_t.IN("_stream", "vertex stream"), bgfx_vertex_buffer_handle_t.IN("_handle", "vertex buffer"), uint32_t.IN("_startVertex", "first vertex to render"), uint32_t.IN("_numVertices", "number of vertices to render") @@ -1967,6 +1968,7 @@ val BGFX = "BGFX".nativeClass(packageName = BGFX_PACKAGE, prefix = "BGFX", prefi "set_dynamic_vertex_buffer", "Sets vertex buffer for draw primitive.", + MapToInt..uint8_t.IN("_stream", "vertex stream"), bgfx_dynamic_vertex_buffer_handle_t.IN("_handle", "dynamic vertex buffer"), uint32_t.IN("_startVertex", "first vertex to render"), uint32_t.IN("_numVertices", "number of vertices to render") @@ -1976,6 +1978,7 @@ val BGFX = "BGFX".nativeClass(packageName = BGFX_PACKAGE, prefix = "BGFX", prefi "set_transient_vertex_buffer", "Sets vertex buffer for draw primitive.", + MapToInt..uint8_t.IN("_stream", "vertex stream"), const..bgfx_transient_vertex_buffer_t_p.IN("_tvb", "transient vertex buffer"), uint32_t.IN("_startVertex", "first vertex to render"), uint32_t.IN("_numVertices", "number of vertices to render")