MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / printFingerIds

Function printFingerIds

tests/loadtests/common/LoadTestSample.cpp:45–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 #include <sstream>
44
45 const std::string printFingerIds(SDL_Finger* fingers[], uint32_t numFingers) {
46 std::stringstream msg;
47 assert(numFingers > 0);
48 msg << std::hex << std::showbase;
49 msg << "finger id" << (numFingers > 1 ? "s" : "") << ": ";
50 for (uint32_t f = 0; f < numFingers; f++) {
51 if (f > 0) {
52 if (f == numFingers - 1)
53 msg << " & ";
54 else
55 msg << ", ";
56 }
57 msg << fingers[f]->id;
58 }
59 return msg.str();
60 }
61
62 const std::string printVector(const std::string& name, glm::vec2 v) {
63 std::stringstream msg;

Callers 1

doEventMethod · 0.85

Calls 2

assertFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected