diff --git a/tests/render/000-static-asserts/drawers.h b/tests/render/000-static-asserts/drawers.h index 3e04f2b05..c33d58e2f 100644 --- a/tests/render/000-static-asserts/drawers.h +++ b/tests/render/000-static-asserts/drawers.h @@ -247,62 +247,10 @@ void drawersStaticAssertsWM() !BlockerEventDrawerConcept&&>, "ViewerDrawer&& does satisfy the BlockerEventDrawerConcept"); -#ifdef VCLIB_RENDER_BACKEND_BGFX - using RenderAppTD = RenderApp; - - // TextDrawer - static_assert( - DrawerConcept>, - "TextDrawer does not satisfy the DrawerConcept"); - static_assert( - DrawerConcept>, - "const TextDrawer does not satisfy the DrawerConcept"); - static_assert( - DrawerConcept&>, - "TextDrawer& does not satisfy the DrawerConcept"); - static_assert( - DrawerConcept&>, - "const TextDrawer& does not satisfy the DrawerConcept"); - static_assert( - DrawerConcept&&>, - "TextDrawer&& does not satisfy the DrawerConcept"); - - static_assert( - !EventDrawerConcept>, - "TextDrawer does satisfy the EventDrawerConcept"); - static_assert( - !EventDrawerConcept>, - "const TextDrawer does satisfy the EventDrawerConcept"); - static_assert( - !EventDrawerConcept&>, - "TextDrawer& does satisfy the EventDrawerConcept"); - static_assert( - !EventDrawerConcept&>, - "const TextDrawer& does satisfy the EventDrawerConcept"); - static_assert( - !EventDrawerConcept&&>, - "TextDrawer&& does satisfy the EventDrawerConcept"); -#endif -} - -void drawersStaticAsserts() -{ - using namespace vcl; - - // static asserts for each window manager -#ifdef VCLIB_WITH_QT - drawersStaticAssertsWM(); -#endif - -#if VCLIB_WITH_GLFW - drawersStaticAssertsWM(); -#endif - - // static assers for drawers that work with specific window managers #ifdef VCLIB_WITH_IMGUI using namespace vcl::imgui; - using RenderAppID = RenderApp; + using RenderAppID = RenderApp; // ImguiDrawer static_assert( @@ -353,6 +301,57 @@ void drawersStaticAsserts() BlockerEventDrawerConcept&&>, "ImguiDrawer&& does not satisfy the BlockerEventDrawerConcept"); #endif + +#ifdef VCLIB_RENDER_BACKEND_BGFX + using RenderAppTD = RenderApp; + + // TextDrawer + static_assert( + DrawerConcept>, + "TextDrawer does not satisfy the DrawerConcept"); + static_assert( + DrawerConcept>, + "const TextDrawer does not satisfy the DrawerConcept"); + static_assert( + DrawerConcept&>, + "TextDrawer& does not satisfy the DrawerConcept"); + static_assert( + DrawerConcept&>, + "const TextDrawer& does not satisfy the DrawerConcept"); + static_assert( + DrawerConcept&&>, + "TextDrawer&& does not satisfy the DrawerConcept"); + + static_assert( + !EventDrawerConcept>, + "TextDrawer does satisfy the EventDrawerConcept"); + static_assert( + !EventDrawerConcept>, + "const TextDrawer does satisfy the EventDrawerConcept"); + static_assert( + !EventDrawerConcept&>, + "TextDrawer& does satisfy the EventDrawerConcept"); + static_assert( + !EventDrawerConcept&>, + "const TextDrawer& does satisfy the EventDrawerConcept"); + static_assert( + !EventDrawerConcept&&>, + "TextDrawer&& does satisfy the EventDrawerConcept"); +#endif +} + +void drawersStaticAsserts() +{ + using namespace vcl; + + // static asserts for each window manager +#ifdef VCLIB_WITH_QT + drawersStaticAssertsWM(); +#endif + +#if VCLIB_WITH_GLFW + drawersStaticAssertsWM(); +#endif } #endif // DRAWERS_H