mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-19 21:42:59 +01:00
Added ability to create texture for external use.
This commit is contained in:
@@ -1760,6 +1760,11 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
||||
m_textures[_handle.idx].setInternal(_ptr);
|
||||
}
|
||||
|
||||
uintptr_t getInternal(TextureHandle _handle) BX_OVERRIDE
|
||||
{
|
||||
return uintptr_t(m_textures[_handle.idx].m_ptr);
|
||||
}
|
||||
|
||||
void destroyTexture(TextureHandle _handle) BX_OVERRIDE
|
||||
{
|
||||
m_textures[_handle.idx].destroy();
|
||||
|
||||
Reference in New Issue
Block a user