From f44f5b32b1872b2658974e74ac1f55d8a1ed2396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 27 Jun 2015 16:47:07 -0700 Subject: [PATCH] Added missing C99 API function. --- include/bgfx.c99.h | 3 +++ include/bgfx.h | 12 ++++++------ src/bgfx.cpp | 5 +++++ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/include/bgfx.c99.h b/include/bgfx.c99.h index 2b48cc22..64d35a83 100644 --- a/include/bgfx.c99.h +++ b/include/bgfx.c99.h @@ -628,6 +628,9 @@ BGFX_C_API void bgfx_set_view_transform(uint8_t _id, const void* _view, const vo /**/ BGFX_C_API void bgfx_set_view_transform_stereo(uint8_t _id, const void* _view, const void* _projL, uint8_t _flags, const void* _projR); +/**/ +BGFX_C_API void bgfx_set_view_remap(uint8_t _id, uint8_t _num, const void* _remap); + /**/ BGFX_C_API void bgfx_set_marker(const char* _marker); diff --git a/include/bgfx.h b/include/bgfx.h index c4986e47..0f646ea7 100644 --- a/include/bgfx.h +++ b/include/bgfx.h @@ -1242,7 +1242,7 @@ namespace bgfx /// @param _index Index into palette. /// @param _rgba Packed 32-bit RGBA value. /// - /// @attention C99 equivalent is ``. + /// @attention C99 equivalent is `bgfx_set_clear_color`. /// void setClearColor(uint8_t _index, uint32_t _rgba); @@ -1251,7 +1251,7 @@ namespace bgfx /// @param _index Index into palette. /// @param _r, _g, _b, _a RGBA floating point values. /// - /// @attention C99 equivalent is ``. + /// @attention C99 equivalent is `bgfx_set_clear_color`. /// void setClearColor(uint8_t _index, float _r, float _g, float _b, float _a); @@ -1380,7 +1380,7 @@ namespace bgfx /// @param _remap View remap id table. Passing `NULL` will reset view ids /// to default state. /// - /// @attention C99 equivalent is ``. + /// @attention C99 equivalent is `bgfx_set_view_remap`. /// void setViewRemap(uint8_t _id = 0, uint8_t _num = UINT8_MAX, const void* _remap = NULL); @@ -1501,7 +1501,7 @@ namespace bgfx /// Set index buffer for draw primitive. /// - /// @attention C99 equivalent is ``. + /// @attention C99 equivalent is `bgfx_set_transient_index_buffer`. /// void setIndexBuffer(const TransientIndexBuffer* _tib); @@ -1513,7 +1513,7 @@ namespace bgfx /// Set vertex buffer for draw primitive. /// - /// @attention C99 equivalent is ``. + /// @attention C99 equivalent is `bgfx_set_vertex_buffer`. /// void setVertexBuffer(VertexBufferHandle _handle); @@ -1531,7 +1531,7 @@ namespace bgfx /// Set vertex buffer for draw primitive. /// - /// @attention C99 equivalent is ``. + /// @attention C99 equivalent is `bgfx_set_transient_vertex_buffer`. /// void setVertexBuffer(const TransientVertexBuffer* _tvb); diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 854e807b..b4dc62c8 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -3645,6 +3645,11 @@ BGFX_C_API void bgfx_set_view_transform_stereo(uint8_t _id, const void* _view, c bgfx::setViewTransform(_id, _view, _projL, _flags, _projR); } +BGFX_C_API void bgfx_set_view_remap(uint8_t _id, uint8_t _num, const void* _remap) +{ + bgfx::setViewRemap(_id, _num, _remap); +} + BGFX_C_API void bgfx_set_marker(const char* _marker) { bgfx::setMarker(_marker);