On Tue, 23 Oct 2018 at 14:26, charleyb123
On Tue, Oct 23, 2018 at 2:36 AM degski via Boost
wrote:
Well, in respect of the 2D Graphics proposal(s), I don't get it. There is a perfectly good (C++, cross platform, mature) 2D Framework [SFML] available, which seems to have been discarded from the block. No, instead we're gonna get [probably] some poofed up C thingy, which does not even allow you to write that little 2D Game [because we need a mouse, a window, touch, sound (formats), image formats, etc etc]. I agree with RR, though, these things should not be part of C++, I don't even think the Network TS should be in the standard, it's highly specialized stuff, with heaps of pitfalls [most user posted problems on this list pertain to ASIO [and Beast (no criticism intended, it's just complicated stuff)]. FYI, the SDL2 backend is now merged into the ‘master’ repo (of https://github.com/cpp-io2d/P0267_RefImpl).
To use it, io2d needs to be compiled with the CMake flag, -DIO2D_DEFAULT=CAIRO_SDL2
Should I cheer or cry? FYI, I'm crying. Let's have a look a basic thing
like creating a Window. I'm taking the Samples/ rocks_in_space as an
example as that seems to be as close as it gets to "a simple 2D game". So
we are creating a window:
https://github.com/cpp-io2d/P0267_RefImpl/blob/master/P0267_RefImpl/Samples/...
and
https://github.com/cpp-io2d/P0267_RefImpl/blob/master/P0267_RefImpl/Samples/....
Somebody must have lost their mind, it's just raw Win32-code (and
corresponding Linux x11 code (Wayland anyone? I'm on Fedora)).
Now let's see how we do that in SFML:
#include