{"id":1228,"date":"2015-01-10T03:24:41","date_gmt":"2015-01-10T03:24:41","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=1228"},"modified":"2015-01-10T03:24:41","modified_gmt":"2015-01-10T03:24:41","slug":"p-155-phoenix-engine-update-1-opengl-context-and-support-libraries","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p-155-phoenix-engine-update-1-opengl-context-and-support-libraries\/","title":{"rendered":"P-155 &#8220;Phoenix&#8221; Engine Update 1: OpenGL Context and support libraries"},"content":{"rendered":"<p>I have successfully created an OpenGL context and installed and linked most of the libraries that I will need for the next part of this project.<\/p>\n<p>As I said, I am using OpenGL for rendering, and <a href=\"http:\/\/www.glfw.org\/\">GLFW<\/a>\u00a0and <a href=\"http:\/\/glew.sourceforge.net\/\">GLEW<\/a>\u00a0for the support libraries. I have also included the glm math library.<\/p>\n<p>My intention is to make a seamless virtual universe, so I had to find some way of representing numerical (decimal) values greater than 64 bits. I thought that this would be easy, but it turns out there are very few libraries that were suitable for my purposes.<br \/>\nThe most common seems to be <a href=\"https:\/\/gmplib.org\/\">GMP<\/a>, although this is designed for linux. There are windows versions, <a href=\"http:\/\/mpir.org\/\">MPIR<\/a>, and <a href=\"http:\/\/www.mpfr.org\/\">MPFR<\/a>, but these are either GPL or commercial.<\/p>\n<p><a href=\"http:\/\/www.boost.org\/\">Boost<\/a> also has support for arbitrary precision mathematics, but it is a huge library. It&#8217;s something I have always wanted to play around with, and many of it&#8217;s other features, such as multithreading and networking, would have also been useful, it it&#8217;s just too inefficient to include a library of that size just for a few features, especially in a games engine. In addition, Boost doesn&#8217;t seem to have a great reputation for use in games engines, for a number of reasons.<\/p>\n<p>I eventually found <a href=\"http:\/\/www.ttmath.org\/\">ttmath<\/a>. This is a very small, very clean bignum library for c++. It is very easy to work with, and is free for commercial and non-commercial use (BSD Licence). This makes it perfect for my purposes.<\/p>\n<p>The next step is to begin experimenting with creating objects in a scene with very large view distances.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have successfully created an OpenGL context and installed and linked most of the libraries that I will need for the next part of this project. As I said, I am using OpenGL for rendering, and GLFW\u00a0and GLEW\u00a0for the support libraries. I have also included the glm math library. My intention is to make a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,16],"tags":[],"class_list":["post-1228","post","type-post","status-publish","format-standard","hentry","category-software-and-games","category-software-engines","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"builder_content":"","_links":{"self":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/1228"}],"collection":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/comments?post=1228"}],"version-history":[{"count":1,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/1228\/revisions"}],"predecessor-version":[{"id":1229,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/1228\/revisions\/1229"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=1228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=1228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=1228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}