MCPcopy Create free account
hub / github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook / fprintfMat4

Function fprintfMat4

shared/scene/Scene.cpp:200–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void fprintfMat4(FILE* f, const glm::mat4& m)
201{
202 if (mat4IsIdentity(m))
203 {
204 fprintf(f, "Identity\n");
205 }
206 else
207 {
208 fprintf(f, "\n");
209 for (int i = 0 ; i < 4 ; i++) {
210 for (int j = 0 ; j < 4 ; j++)
211 fprintf(f, "%f ;", m[i][j]);
212 fprintf(f, "\n");
213 }
214 }
215}
216
217void dumpTransforms(const char* fileName, const Scene& scene)
218{

Callers 2

dumpTransformsFunction · 0.85
printChangedNodesFunction · 0.85

Calls 1

mat4IsIdentityFunction · 0.85

Tested by

no test coverage detected