mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-29 16:15:00 +00:00
feat(tests): Add stub config service and enhance bgfx_gui_service tests
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -32,6 +32,9 @@ public:
|
||||
|
||||
void Shutdown() noexcept override;
|
||||
|
||||
bool IsProgramReady() const;
|
||||
bool IsWhiteTextureReady() const;
|
||||
|
||||
private:
|
||||
struct GuiVertex {
|
||||
float x = 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user