MCPcopy Create free account
hub / github.com/ddnet/ddnet / TakeScreenshot

Method TakeScreenshot

src/engine/client/graphics_threaded.cpp:2780–2787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2778}
2779
2780void CGraphics_Threaded::TakeScreenshot(const char *pFilename)
2781{
2782 // TODO: screenshot support
2783 char aDate[20];
2784 str_timestamp(aDate, sizeof(aDate));
2785 str_format(m_aScreenshotName, sizeof(m_aScreenshotName), "screenshots/%s_%s.png", pFilename ? pFilename : "screenshot", aDate);
2786 m_DoScreenshot = true;
2787}
2788
2789void CGraphics_Threaded::TakeCustomScreenshot(const char *pFilename)
2790{

Callers 4

OnRenderMethod · 0.80
AutoScreenshot_StartMethod · 0.80
Con_ScreenshotMethod · 0.80

Calls 2

str_timestampFunction · 0.85
str_formatFunction · 0.85

Tested by

no test coverage detected