Added GetTextureHandle() to SHGraphicsSystem

This commit is contained in:
Kah Wei 2022-11-02 17:51:07 +08:00
parent 4721a133e1
commit c68c5adc0d
2 changed files with 20 additions and 0 deletions

View File

@ -655,6 +655,11 @@ namespace SHADE
); );
} }
Handle<SHTexture> SHGraphicsSystem::GetTextureHandle(SHTexture::Index textureId) const
{
return texLibrary.GetTextureHandle(textureId);
}
#pragma endregion ADD_REMOVE #pragma endregion ADD_REMOVE
#pragma region ROUTINES #pragma region ROUTINES

View File

@ -262,6 +262,21 @@ namespace SHADE
*/ */
/***************************************************************************/ /***************************************************************************/
void BuildTextures(); void BuildTextures();
/***************************************************************************/
/*!
*
\brief
Retrieves the texture handle at the specified texture index.
\param textureId
Index of the texture to look for.
\returns
Handle to the texture
*/
/***************************************************************************/
Handle<SHTexture> GetTextureHandle(SHTexture::Index textureId) const;
void PrepareResize(uint32_t newWidth, uint32_t newHeight) noexcept; void PrepareResize(uint32_t newWidth, uint32_t newHeight) noexcept;
void HandleResize(void) noexcept; void HandleResize(void) noexcept;