{"id":45,"date":"2009-06-07T18:33:29","date_gmt":"2009-06-07T18:33:29","guid":{"rendered":"https:\/\/blogs.scummvm.org\/upthorn\/?p=45"},"modified":"2022-05-25T18:33:58","modified_gmt":"2022-05-25T18:33:58","slug":"first-outlines-of-an-api","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/upthorn\/2009\/06\/07\/first-outlines-of-an-api\/","title":{"rendered":"First outlines of an API"},"content":{"rendered":"<div class=\"storycontent\">\n<p>After discussing the API a bit with my mentor, Sev, it has been determined that the game engine should initially request a bitdepth\/pixelformat of the backend by means of an optional parameter passed to Engine::InitGraphics<\/p>\n<p>There are still a few details that haven\u2019t been determined, like:<\/p>\n<ul>\n<li>What happens when the engine requests an unsupported format;<\/li>\n<li>Should the parameter be a bitdepth (8, 16, 24, 32) a generic specifier (8, 555, 565, 1555, 888, 8888), a fully formed Graphics::PixelFormat object, or some other format not yet defined;<\/li>\n<li>Should any pixelformat conversions be performed if the engine and backend cannot agree on a directly supported format<\/li>\n<li>If so, should they be performed by the engine, or by the backend? or should it vary by circumstance?<\/li>\n<li>Probably many others that I haven\u2019t considered yet<\/li>\n<\/ul>\n<p>But, I am beginning to form a mental picture of how this thing will work, and I will, of course, discuss these remaining questions with Sev, and others, at the next opportunity.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>After discussing the API a bit with my mentor, Sev, it has been determined that the game engine should initially request a bitdepth\/pixelformat of the backend by means of an optional parameter passed to Engine::InitGraphics There are still a few details that haven\u2019t been determined, like: What happens when the engine requests an unsupported format; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/upthorn\/wp-json\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/upthorn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/upthorn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/upthorn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/upthorn\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":2,"href":"https:\/\/blogs.scummvm.org\/upthorn\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"predecessor-version":[{"id":47,"href":"https:\/\/blogs.scummvm.org\/upthorn\/wp-json\/wp\/v2\/posts\/45\/revisions\/47"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/upthorn\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/upthorn\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/upthorn\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}