{"id":175,"date":"2016-07-02T19:22:52","date_gmt":"2016-07-02T19:22:52","guid":{"rendered":"http:\/\/blog.qubekwest.com\/?p=175"},"modified":"2016-09-11T15:19:53","modified_gmt":"2016-09-11T15:19:53","slug":"depth-of-the-problem","status":"publish","type":"post","link":"https:\/\/blog.qubekwest.com\/?p=175","title":{"rendered":"Depth of the Problem"},"content":{"rendered":"<p>The initial goal was &#8220;to get something on the screen.&#8221; \u00a0It seemed like a fairly straightforward goal really. \u00a0I wasn&#8217;t even especially picky about what was on the screen once I&#8217;d gotten it there. \u00a0A singe block floating in space with a texture on it would have made me very happy. \u00a0As it turns out, my simple goal ended up being little more than a good place to start.<\/p>\n<p>As I read more of my OpenGL book and printed shader tutorials, I found the scope of this simple goal expanding. \u00a0The progression went a little bit like this:<\/p>\n<ul>\n<li>Get something on the screen.<\/li>\n<li>That something should have a texture on it.<\/li>\n<li>There&#8217;s no point building the entire framework for getting a texture on something when it&#8217;ll just be wrong immediately afterwards.<\/li>\n<li>That meant putting my textures into a proper texture atlas.<\/li>\n<li>Which meant I would need a way to store and sort my textures so I could arrange them into that texture atlas.<\/li>\n<li>Which meant I had a binary tree structure to build.<\/li>\n<li>Once that was built, I needed to be able to iterate over the rectangles in that tree.<\/li>\n<li>Which meant I&#8217;d need to make a Linked List class that could act as a stack or a queue.<\/li>\n<li>And so on&#8230;<\/li>\n<\/ul>\n<p>So now, roughly 47 layers removed from my original problem, I&#8217;m effectively in a Computer Science Data Structures class. \u00a0I figure I&#8217;ll eventually unravel this mess and get back to working on the actual problem that started it. \u00a0I look forward to that time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The initial goal was &#8220;to get something on the screen.&#8221; \u00a0It seemed like a fairly straightforward goal really. \u00a0I wasn&#8217;t even especially picky about what was on the screen once I&#8217;d gotten it there. \u00a0A singe block floating in space with a texture on it would have made me very happy. \u00a0As it turns out, &hellip; <a href=\"https:\/\/blog.qubekwest.com\/?p=175\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Depth of the Problem<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-175","post","type-post","status-publish","format-standard","hentry","category-dev"],"_links":{"self":[{"href":"https:\/\/blog.qubekwest.com\/index.php?rest_route=\/wp\/v2\/posts\/175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qubekwest.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qubekwest.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qubekwest.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qubekwest.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=175"}],"version-history":[{"count":3,"href":"https:\/\/blog.qubekwest.com\/index.php?rest_route=\/wp\/v2\/posts\/175\/revisions"}],"predecessor-version":[{"id":178,"href":"https:\/\/blog.qubekwest.com\/index.php?rest_route=\/wp\/v2\/posts\/175\/revisions\/178"}],"wp:attachment":[{"href":"https:\/\/blog.qubekwest.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qubekwest.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qubekwest.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}