mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-04-12 23:34:29 -04:00
Updated C99 API.
This commit is contained in:
parent
ca41b8b774
commit
7ebc6e3cbb
2 changed files with 17 additions and 0 deletions
|
@ -167,6 +167,12 @@ BGFX_HANDLE_T(bgfx_vertex_decl_handle);
|
|||
#undef BGFX_HANDLE_T
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
typedef void (*bgfx_release_fn_t)(void* _ptr, void* _userData);
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
typedef struct bgfx_memory
|
||||
{
|
||||
|
@ -176,6 +182,7 @@ typedef struct bgfx_memory
|
|||
} bgfx_memory_t;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
typedef struct bgfx_transform
|
||||
{
|
||||
|
@ -634,6 +641,11 @@ BGFX_C_API const bgfx_memory_t* bgfx_copy(const void* _data, uint32_t _size);
|
|||
*/
|
||||
BGFX_C_API const bgfx_memory_t* bgfx_make_ref(const void* _data, uint32_t _size);
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
BGFX_C_API const bgfx_memory_t* bgfx_make_ref_release(const void* _data, uint32_t _size, bgfx_release_fn_t _releaseFn, void* _userData);
|
||||
|
||||
/**
|
||||
* Set debug flags.
|
||||
*
|
||||
|
|
|
@ -3096,6 +3096,11 @@ BGFX_C_API const bgfx_memory_t* bgfx_make_ref(const void* _data, uint32_t _size)
|
|||
return (const bgfx_memory_t*)bgfx::makeRef(_data, _size);
|
||||
}
|
||||
|
||||
BGFX_C_API const bgfx_memory_t* bgfx_make_ref_release(const void* _data, uint32_t _size, bgfx_release_fn_t _releaseFn, void* _userData)
|
||||
{
|
||||
return (const bgfx_memory_t*)bgfx::makeRef(_data, _size, _releaseFn, _userData);
|
||||
}
|
||||
|
||||
BGFX_C_API void bgfx_set_debug(uint32_t _debug)
|
||||
{
|
||||
bgfx::setDebug(_debug);
|
||||
|
|
Loading…
Add table
Reference in a new issue