{"id":2243,"date":"2018-11-01T16:14:20","date_gmt":"2018-11-01T16:14:20","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=2243"},"modified":"2018-11-02T09:55:14","modified_gmt":"2018-11-02T09:55:14","slug":"cross-platform-development-library-sdl2-2-0-9-is-out","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/11\/01\/cross-platform-development-library-sdl2-2-0-9-is-out\/","title":{"rendered":"Cross-platform development library SDL2 2.0.9 is out"},"content":{"rendered":"<p>SDL 2.0.9 has been released today featuring some rather interesting new stuff. It&#8217;s been a while, with 2.0.8 being released back in March of last year.<\/p>\n<p>What is SDL 2? Well, in their own words &#8220;Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.&#8221; (and Vulkan <a href=\"https:\/\/www.gamingonlinux.com\/articles\/sdl-206-released-introduces-vulkan-support.10406\" target=\"_blank\" rel=\"noopener\">since 2.0.6<\/a>). It&#8217;s used by many game developers including Valve, Unity, Feral Interactive and no doubt a great many more.<\/p>\n<p>A few random highlights of what&#8217;s new:<\/p>\n<ul>\n<li>SDL_GetDisplayOrientation() to get the current display orientation along with SDL_DISPLAYEVENT for changes to it.<\/li>\n<li>Added HIDAPI joystick drivers for more consistent support for Xbox, PS4 and Nintendo Switch Pro controller support across platforms. Valve contributed PS4 and Nintendo Switch Pro controller support.<\/li>\n<li>Support for many other popular game controllers<\/li>\n<li>Multiple extras to deal with gamepads like SDL_GameControllerMappingForDeviceIndex() to get the mapping for a controller before it&#8217;s opened<\/li>\n<li>Specifically for Linux, there&#8217;s now a &#8220;SDL_LinuxSetThreadPriority()&#8221; feature to allow adjusting the thread priority of native threads.<\/li>\n<\/ul>\n<p>The SDL render batching and some caching, which Ryan Gordon wrote about <a href=\"https:\/\/www.patreon.com\/posts\/project-sdl-21856507\" target=\"_blank\" rel=\"noopener\">in this Patreon post<\/a> didn&#8217;t make it into this release but it should be in the next one. Ryan told me he didn&#8217;t want to risk breakage late in the development cycle. That should make the next version of SDL after this really quite exciting.<\/p>\n<p>On top of that, Wayland server-side window decorations on KDE should also be in the following release. You can see a video of that from Ryan Gordon below:<\/p>\n<p>You can see a human readable <a href=\"https:\/\/hg.libsdl.org\/SDL\/file\/0f9e74a94e62\/WhatsNew.txt\" target=\"_blank\" rel=\"noopener\">changelog here<\/a> for 2.0.9 and for the commit log to get down and dirty with more details find that <a href=\"https:\/\/hg.libsdl.org\/SDL\/shortlog\/release-2.0.8:release-2.0.9?revcount=460\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n<p><a href=\"https:\/\/www.gamingonlinux.com\/articles\/cross-platform-development-library-sdl2-209-is-out.12873\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SDL 2.0.9 has been released today featuring some rather interesting new stuff. It&#8217;s been a while, with 2.0.8 being released back in March of last year. What is SDL 2? Well, in their own words &#8220;Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/11\/01\/cross-platform-development-library-sdl2-2-0-9-is-out\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Cross-platform development library SDL2 2.0.9 is out&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2243","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=2243"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2243\/revisions"}],"predecessor-version":[{"id":2338,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2243\/revisions\/2338"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=2243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=2243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=2243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}