Hello,
I am looking to get the same effect as the GraphicsPath from Winforms which allows to keep some particular areas of myForm unrefreshed. f.i.:
myForm
.Invalidate(new Region
(graphicsPath
));
My final goal is to draw things at the unrefreshed location, using a HDC (Device context handle) that I will provide to an external application. (This currently works using winforms).
I am using SFML.Net 2.4 and I create my window this way:
SFML
.Graphics.RenderWindow mySfmlWindow
= new RenderWindow
(myForm
.Handle, settings
);
I can still create the HDC on myForm, however, even without calling :
mySfmlWindow.Clear(color);
, the things drawn by the external application are still instantly cleared when i call:
mySfmlWindow.Display();
I suppose this is due to the fact SFML keeps its double buffers somewhere else than the window itself, so anything drawn by an external application using the window's HDC will get overwritten by the copy of SFML's internal buffers... What can I do?