MCPcopy Create free account
hub / github.com/chrxh/alien / tryDrawVectorGraphics

Method tryDrawVectorGraphics

source/EngineImpl/EngineWorker.cpp:47–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void EngineWorker::tryDrawVectorGraphics(
48 RealVector2D const& rectUpperLeft,
49 RealVector2D const& rectLowerRight,
50 IntVector2D const& imageSize,
51 double zoom)
52{
53 EngineWorkerGuard access(this, FrameTimeout);
54
55 if (!access.isTimeout()) {
56 registerImageResource();
57 _simulationCudaFacade->drawVectorGraphics(
58 {rectUpperLeft.x, rectUpperLeft.y}, {rectLowerRight.x, rectLowerRight.y}, _cudaResource, {imageSize.x, imageSize.y}, zoom);
59 syncSimulationWithRenderingIfDesired();
60 }
61}
62
63std::optional<OverlayDescription> EngineWorker::tryDrawVectorGraphicsAndReturnOverlay(
64 RealVector2D const& rectUpperLeft,

Callers 1

Calls 1

isTimeoutMethod · 0.80

Tested by

no test coverage detected