feat(tests): Add stub config service and enhance bgfx_gui_service tests

This commit is contained in:
2026-01-07 13:07:30 +00:00
parent 23e22c63c0
commit 25bd2fdca5
5 changed files with 66 additions and 22 deletions

View File

@@ -243,6 +243,14 @@ void BgfxGuiService::Shutdown() noexcept {
initialized_ = false;
}
bool BgfxGuiService::IsProgramReady() const {
return bgfx::isValid(program_);
}
bool BgfxGuiService::IsWhiteTextureReady() const {
return bgfx::isValid(whiteTexture_);
}
void BgfxGuiService::InitializeResources() {
if (initialized_) {
return;

View File

@@ -32,6 +32,9 @@ public:
void Shutdown() noexcept override;
bool IsProgramReady() const;
bool IsWhiteTextureReady() const;
private:
struct GuiVertex {
float x = 0.0f;