MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / handlePaintEvent

Method handlePaintEvent

Engine/source/gui/core/guiCanvas.cpp:410–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410void GuiCanvas::handlePaintEvent(WindowId did)
411{
412 bool canRender = mPlatformWindow->isVisible() && GFX->allowRender() && !GFX->canCurrentlyRender();
413
414 // Do the screenshot first.
415 if ( gScreenShot != NULL && gScreenShot->isPending() && canRender )
416 gScreenShot->capture( this );
417
418 // If the video capture is waiting for a canvas, start the capture
419 if ( VIDCAP->isWaitingForCanvas() && canRender )
420 VIDCAP->begin( this );
421
422 // Now capture the video
423 if ( VIDCAP->isRecording() && canRender )
424 VIDCAP->capture();
425
426 renderFrame(false);
427}
428
429void GuiCanvas::handleAppEvent( WindowId did, S32 event )
430{

Callers

nothing calls this directly

Calls 9

renderFrameFunction · 0.85
allowRenderMethod · 0.80
canCurrentlyRenderMethod · 0.80
isPendingMethod · 0.80
isWaitingForCanvasMethod · 0.80
isVisibleMethod · 0.45
captureMethod · 0.45
beginMethod · 0.45
isRecordingMethod · 0.45

Tested by

no test coverage detected