Added ability to create texture for external use.

This commit is contained in:
Branimir Karadžić
2016-01-18 17:29:53 -08:00
parent da38788fb1
commit 445ac92eff
9 changed files with 74 additions and 7 deletions

View File

@@ -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();