MCPcopy Create free account
hub / github.com/TankOs/SFGUI / LoadExtByName

Function LoadExtByName

src/SFGUI/GLLoader.cpp:1829–1852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1827
1828
1829static void LoadExtByName(const char *extensionName)
1830{
1831 sfgogl_StrToExtMap *entry = NULL;
1832 entry = FindExtEntry(extensionName);
1833 if(entry)
1834 {
1835 if(entry->LoadExtension)
1836 {
1837 int numFailed = entry->LoadExtension();
1838 if(numFailed == 0)
1839 {
1840 *(entry->extensionVariable) = sfgogl_LOAD_SUCCEEDED;
1841 }
1842 else
1843 {
1844 *(entry->extensionVariable) = sfgogl_LOAD_SUCCEEDED + numFailed;
1845 }
1846 }
1847 else
1848 {
1849 *(entry->extensionVariable) = sfgogl_LOAD_SUCCEEDED;
1850 }
1851 }
1852}
1853
1854
1855static void ProcExtsFromExtString(const char *strExtList)

Callers 1

ProcExtsFromExtStringFunction · 0.85

Calls 1

FindExtEntryFunction · 0.85

Tested by

no test coverage detected