window.PollEvents is not public forcing inheritance.
Shadowblitz16 opened this issue · comments
what the title says.
it would be nice if I didn't have to inherit the Sfml.Window so I can control when its shown
Window.DispatchEvents() is the appropriate call. You should not be manually iterating events, binding to the supplied Events instead.
can you provide a example?
I am just following the way c++ sfml does it
There's an entire example folder available in the repo, but here's a specific example for using the events.
https://github.com/SFML/SFML.Net/blob/master/examples/window/Program.cs
SFML.Net has a few .net specific approaches, thus not everything translates directly from C++ to C#.
Make sure to check out the examples as @DemoXinMC already mentioned.