MCPcopy Create free account
hub / github.com/SFML/SFML / isExtensionAvailable

Method isExtensionAvailable

src/SFML/Window/GlContext.cpp:672–680  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

670
671////////////////////////////////////////////////////////////
672bool GlContext::isExtensionAvailable(std::string_view name)
673{
674 // If this function is called before any context is available,
675 // the shared context will be created for the duration of this call
676 const auto sharedContext = SharedContext::get();
677
678 return std::find(sharedContext->extensions.begin(), sharedContext->extensions.end(), name) !=
679 sharedContext->extensions.end();
680}
681
682
683////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected