MCPcopy Create free account
hub / github.com/RenderKit/embree / skipSpacesAndComments

Function skipSpacesAndComments

tutorials/common/image/ppm.cpp:13–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace embree
12{
13 static void skipSpacesAndComments(std::fstream& file)
14 {
15 while (true)
16 {
17 if (isspace(file.peek())) {
18 file.ignore();
19 } else if (file.peek() == '#') {
20 std::string line; std::getline(file,line);
21 } else break;
22 }
23 }
24
25 /*! read PPM file from disk */
26 Ref<Image> loadPPM(const FileName& fileName)

Callers 1

loadPPMFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected