MCPcopy Create free account
hub / github.com/beefytech/Beef / ExpectIndex

Function ExpectIndex

BeefySysLib/gfx/glTF.cpp:324–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324static bool ExpectIndex(GLTFPropsParser& propsParser, int& idx)
325{
326 auto node = propsParser.GetNext();
327 if (node.mKind != GLTFPropsParser::NodeKind_LBracket)
328 return false;
329 node = propsParser.GetNext();
330 if (node.mKind != GLTFPropsParser::NodeKind_Integer)
331 return false;
332 idx = node.mValueInt;
333 node = propsParser.GetNext();
334 if (node.mKind != GLTFPropsParser::NodeKind_RBracket)
335 return false;
336 return true;
337};
338
339static bool ExpectOpen(GLTFPropsParser& propsParser)
340{

Callers 2

ParseMaterialDefMethod · 0.85
LoadModelPropsMethod · 0.85

Calls 1

GetNextMethod · 0.45

Tested by

no test coverage detected