This commit is contained in:
Бранимир Караџић
2019-02-27 00:25:45 -08:00
parent feaffe9d95
commit 1243551c22
3 changed files with 6 additions and 3 deletions

View File

@@ -674,4 +674,7 @@ typedef struct bgfx_encoder_s bgfx_encoder_t;
#include "bgfx.idl.h"
/**/
BGFX_C_API bgfx_interface_vtbl_t* bgfx_get_interface(uint32_t _version);
#endif // BGFX_C99_H_HEADER_GUARD

View File

@@ -1,5 +1,4 @@
/*
* Copyright 2011-2019 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
@@ -441,6 +440,7 @@ BGFX_C_API uintptr_t bgfx_override_internal_texture_ptr(bgfx_texture_handle_t _h
/**/
BGFX_C_API uintptr_t bgfx_override_internal_texture(bgfx_texture_handle_t _handle, uint16_t _width, uint16_t _height, uint8_t _numMips, bgfx_texture_format_t _format, uint32_t _flags);
/**/
typedef struct bgfx_interface_vtbl
{
void (*vertex_decl_begin)(bgfx_vertex_decl_t* _this, bgfx_renderer_type_t _renderer);

View File

@@ -1,5 +1,4 @@
/*
* Copyright 2011-2019 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
@@ -917,6 +916,7 @@ BGFX_C_API uintptr_t bgfx_override_internal_texture(bgfx_texture_handle_t _handl
return bgfx::overrideInternal(handle.cpp, _width, _height, _numMips, (bgfx::TextureFormat::Enum)_format, _flags);
}
/**/
BGFX_C_API bgfx_interface_vtbl_t* bgfx_get_interface(uint32_t _version)
{
if (_version == BGFX_API_VERSION)
@@ -1066,7 +1066,7 @@ BGFX_C_API bgfx_interface_vtbl_t* bgfx_get_interface(uint32_t _version)
bgfx_set_platform_data,
bgfx_get_internal_data,
bgfx_override_internal_texture_ptr,
bgfx_override_internal_texture,
bgfx_override_internal_texture
};
return &s_bgfx_interface;