MCPcopy Create free account
hub / github.com/ProjectPhysX/FluidX3D / write_frame

Method write_frame

src/lbm.cpp:1235–1237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1233 (*running_encoders)--;
1234}
1235void LBM::Graphics::write_frame(const string& path, const string& name, const string& extension, bool print_preview) { // save current frame as .png file (smallest file size, but slow)
1236 write_frame(0u, 0u, camera.width, camera.height, path, name, extension, print_preview);
1237}
1238void LBM::Graphics::write_frame(const uint x1, const uint y1, const uint x2, const uint y2, const string& path, const string& name, const string& extension, bool print_preview) { // save a cropped current frame with two corner points (x1,y1) and (x2,y2)
1239 camera.rendring_frame.lock(); // block rendering for other threads until finished
1240 camera.key_update = true; // force rendering new frame

Callers

nothing calls this directly

Calls 10

default_filenameFunction · 0.85
maxFunction · 0.85
minFunction · 0.85
printlnFunction · 0.85
print_imageFunction · 0.85
print_infoFunction · 0.85
heightMethod · 0.80
widthMethod · 0.80
set_colorMethod · 0.80
get_tMethod · 0.45

Tested by

no test coverage detected