MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Parse1DMatrix

Function Parse1DMatrix

code/qcommon/q_shared.cpp:549–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547
548
549void Parse1DMatrix ( const char **buf_p, int x, float *m) {
550 const char *token;
551 int i;
552
553 COM_MatchToken( buf_p, "(" );
554
555 for (i = 0 ; i < x ; i++) {
556 token = COM_Parse(buf_p);
557 m[i] = atof(token);
558 }
559
560 COM_MatchToken( buf_p, ")" );
561}
562
563void Parse2DMatrix ( const char **buf_p, int y, int x, float *m) {
564 int i;

Callers 1

Parse2DMatrixFunction · 0.70

Calls 2

COM_MatchTokenFunction · 0.70
COM_ParseFunction · 0.70

Tested by

no test coverage detected