MCPcopy Create free account
hub / github.com/defold/defold / GetRegisteredAdapter

Function GetRegisteredAdapter

engine/graphics/src/graphics.cpp:1806–1818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1804 }
1805
1806 const HGraphicsAdapter GetRegisteredAdapter(uint32_t index)
1807 {
1808 uint32_t adapter_count = 0;
1809 GraphicsAdapter* next = g_adapter_list;
1810 while(next)
1811 {
1812 if (adapter_count == index)
1813 return next;
1814 adapter_count++;
1815 next = next->m_Next;
1816 }
1817 return 0;
1818 }
1819
1820 void Finalize()
1821 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected