{"id":33,"date":"2020-07-21T22:03:38","date_gmt":"2020-07-22T05:03:38","guid":{"rendered":"http:\/\/blog.nrezinorn.net\/?p=33"},"modified":"2020-07-21T22:07:07","modified_gmt":"2020-07-22T05:07:07","slug":"leveling-up-with-sdl2","status":"publish","type":"post","link":"https:\/\/blog.nrezinorn.net\/index.php\/2020\/07\/21\/leveling-up-with-sdl2\/","title":{"rendered":"Leveling Up with SDL2"},"content":{"rendered":"\n<p>That last 4 days have seen lots of progress with my first game port.  I had everything whittled down to&#8230;.  a handful of errors , which I fixed.  That then led to this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"499\" height=\"124\" src=\"https:\/\/blog.nrezinorn.net\/wp-content\/uploads\/2020\/07\/compile_errors_jul_21.jpg\" alt=\"\" class=\"wp-image-34\" srcset=\"https:\/\/blog.nrezinorn.net\/wp-content\/uploads\/2020\/07\/compile_errors_jul_21.jpg 499w, https:\/\/blog.nrezinorn.net\/wp-content\/uploads\/2020\/07\/compile_errors_jul_21-300x75.jpg 300w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><\/figure>\n\n\n\n<p>Again, I spent more time that I wanted to fighting Windows includes and headers.  That error, it turns out masked the above 300+ errors!   Either way &#8211; the port is trending towards a playable state very quickly, and it is also nice how you can see in the above screenshot vscode is helpful to recommend what I <strong>SHOULD <\/strong>be using instead, which speeds up the porting process!<\/p>\n\n\n\n<p>The current task, is porting all the Actors (entities!) to SDL2, there are very minor changes that each class needs to have.  There are&#8230;.about 64 total classes to update, which should be easy enough using Find->Replace<\/p>\n","protected":false},"excerpt":{"rendered":"<p>That last 4 days have seen lots of progress with my first game port. I had everything whittled down to&#8230;. a handful of errors , which I fixed. That then led to this: Again, I spent more time that I wanted to fighting Windows includes and headers. That error, it turns out masked the above [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[6,9,10],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-gamedev","tag-sdl2","tag-vscode","tag-windows"],"_links":{"self":[{"href":"https:\/\/blog.nrezinorn.net\/index.php\/wp-json\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nrezinorn.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nrezinorn.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nrezinorn.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nrezinorn.net\/index.php\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":3,"href":"https:\/\/blog.nrezinorn.net\/index.php\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":37,"href":"https:\/\/blog.nrezinorn.net\/index.php\/wp-json\/wp\/v2\/posts\/33\/revisions\/37"}],"wp:attachment":[{"href":"https:\/\/blog.nrezinorn.net\/index.php\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nrezinorn.net\/index.php\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nrezinorn.net\/index.php\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}