32 graphics_context gc{ result };
33 scalar const outline = 4.0;
42 scoped_render_target srt{ *pingPongBuffers.buffer1 };
43 pingPongBuffers.buffer1->draw_texture(targetRect, aSource,
color::Black);
46 scoped_render_target srt{ *pingPongBuffers.buffer2 };
49 scoped_render_target srt{ gc };
50 gc.blit(r, *pingPongBuffers.buffer2, r);
52 scoped_render_target srt{ gc };
size extents() const final
ping_pong_buffers create_ping_pong_buffers(const i_rendering_context &aContext, const size &aExtents, texture_sampling aSampling=texture_sampling::Multisample, const optional_color &aClearColor=color{ vec4{0.0, 0.0, 0.0, 0.0} })