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

Function skipSpacesAndComments

tutorials/common/image/pfm.cpp:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

loadPFMFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected