mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Added missing C99 API function.
This commit is contained in:
parent
07d0f56696
commit
f44f5b32b1
3 changed files with 14 additions and 6 deletions
|
@ -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_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);
|
BGFX_C_API void bgfx_set_marker(const char* _marker);
|
||||||
|
|
||||||
|
|
|
@ -1242,7 +1242,7 @@ namespace bgfx
|
||||||
/// @param _index Index into palette.
|
/// @param _index Index into palette.
|
||||||
/// @param _rgba Packed 32-bit RGBA value.
|
/// @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);
|
void setClearColor(uint8_t _index, uint32_t _rgba);
|
||||||
|
|
||||||
|
@ -1251,7 +1251,7 @@ namespace bgfx
|
||||||
/// @param _index Index into palette.
|
/// @param _index Index into palette.
|
||||||
/// @param _r, _g, _b, _a RGBA floating point values.
|
/// @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);
|
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
|
/// @param _remap View remap id table. Passing `NULL` will reset view ids
|
||||||
/// to default state.
|
/// 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);
|
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.
|
/// Set index buffer for draw primitive.
|
||||||
///
|
///
|
||||||
/// @attention C99 equivalent is ``.
|
/// @attention C99 equivalent is `bgfx_set_transient_index_buffer`.
|
||||||
///
|
///
|
||||||
void setIndexBuffer(const TransientIndexBuffer* _tib);
|
void setIndexBuffer(const TransientIndexBuffer* _tib);
|
||||||
|
|
||||||
|
@ -1513,7 +1513,7 @@ namespace bgfx
|
||||||
|
|
||||||
/// Set vertex buffer for draw primitive.
|
/// Set vertex buffer for draw primitive.
|
||||||
///
|
///
|
||||||
/// @attention C99 equivalent is ``.
|
/// @attention C99 equivalent is `bgfx_set_vertex_buffer`.
|
||||||
///
|
///
|
||||||
void setVertexBuffer(VertexBufferHandle _handle);
|
void setVertexBuffer(VertexBufferHandle _handle);
|
||||||
|
|
||||||
|
@ -1531,7 +1531,7 @@ namespace bgfx
|
||||||
|
|
||||||
/// Set vertex buffer for draw primitive.
|
/// Set vertex buffer for draw primitive.
|
||||||
///
|
///
|
||||||
/// @attention C99 equivalent is ``.
|
/// @attention C99 equivalent is `bgfx_set_transient_vertex_buffer`.
|
||||||
///
|
///
|
||||||
void setVertexBuffer(const TransientVertexBuffer* _tvb);
|
void setVertexBuffer(const TransientVertexBuffer* _tvb);
|
||||||
|
|
||||||
|
|
|
@ -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::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_C_API void bgfx_set_marker(const char* _marker)
|
||||||
{
|
{
|
||||||
bgfx::setMarker(_marker);
|
bgfx::setMarker(_marker);
|
||||||
|
|
Loading…
Reference in a new issue