MCPcopy Create free account
hub / github.com/crownengine/crown / dumpExtensions

Function dumpExtensions

3rdparty/bgfx/src/renderer_gl.cpp:1204–1232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1202 }
1203
1204 void dumpExtensions(const char* _extensions)
1205 {
1206 if (NULL != _extensions)
1207 {
1208 char name[1024];
1209 const char* pos = _extensions;
1210 const char* end = _extensions + bx::strLen(_extensions);
1211 while (pos < end)
1212 {
1213 uint32_t len;
1214 bx::StringView space = bx::strFind(pos, ' ');
1215 if (!space.isEmpty() )
1216 {
1217 len = bx::uint32_min(sizeof(name), (uint32_t)(space.getPtr() - pos) );
1218 }
1219 else
1220 {
1221 len = bx::uint32_min(sizeof(name), (uint32_t)bx::strLen(pos) );
1222 }
1223
1224 bx::strCopy(name, BX_COUNTOF(name), pos, len);
1225 name[len] = '\0';
1226
1227 BX_TRACE("\t%s", name);
1228
1229 pos += len+1;
1230 }
1231 }
1232 }
1233
1234 const char* toString(GLenum _enum)
1235 {

Callers 3

createMethod · 0.70
createMethod · 0.70
dumpMethod · 0.50

Calls 4

strLenFunction · 0.85
strFindFunction · 0.85
strCopyFunction · 0.85
isEmptyMethod · 0.45

Tested by

no test coverage detected