|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <!DOCTYPE html>
- <head>
- <meta charset="utf-8" />
-
- <meta name="viewport" content="width=device-width" />
-
- <title>November 2016 recap</title>
-
- <link rel="stylesheet" href="http://opengamestudio.org/theme/css/normalize.css" />
- <link rel="stylesheet" href="http://opengamestudio.org/theme/css/foundation.min.css" />
- <link rel="stylesheet" href="http://opengamestudio.org/theme/css/style.css" />
- <link rel="stylesheet" href="http://opengamestudio.org/theme/css/pygments.css" />
- <script src="http://opengamestudio.org/theme/js/custom.modernizr.js"></script>
-
-
- <link href="feeds/all.atom.xml" rel="alternate" title="Opensource Game Studio" type="application/atom+xml">
-
- </head>
-
- <body>
-
-
- <nav>
-
-
- <div class="row">
- <div class="large-12 columns top-bar">
- <h1><a href="http://opengamestudio.org">Opensource Game Studio</a></h1>
- </div>
- </div>
- <div class="row top-menu">
- <div class="large-12 columns">
- <a href="/pages/games.html" class="menu-button secondary">Games</a>
- <a href="/pages/education.html" class="menu-button secondary">Education</a>
- <a href="/pages/about.html" class="menu-button secondary">About</a>
-
- </div>
- </div>
- </nav>
-
-
-
-
- <div class="row">
-
-
- <div class="large-9 columns">
- <article>
- <header>
- <h3 class="article-title"><a href="http://opengamestudio.org/2016-november-recap.html" rel="bookmark"
- title="Permalink to November 2016 recap">November 2016 recap</a></h3>
- </header>
-
- <h6 class="subheader" title="2016-12-15T00:00:00+03:00">Чт 15 декабря 2016
- <a class="button secondary small translation-button" href="http://opengamestudio.org/2016-november-recap-ru.html">ru</a>
-
- </h6> <p><img alt="November recap" src="http://opengamestudio.org/2016-12-15_2016-november-recap.png"></p>
- <p>This article describes the start of MJIN library separation into modules.</p>
- <p>Once we built OpenSceneGraph for Android, it became obvious that some MJIN functionality is not suitable for Android. For example, UIQt provides a basis for OGS Editor UI. Since OGS Editor is a desktop application, we don't need UIQt for Android.</p>
- <p>We decided to have a look at two approaches to separate MJIN into modules: build-time separation and run-time one.
- <strong>Build-time</strong> separation means MJIN becomes highly configurable and each platform gets specifically tailored MJIN build.
- <strong>Run-time</strong> separation means MJIN is divided into smaller libraries that are connected at run-time, which makes it easy to change functionality without rebuilding.</p>
- <p><strong>Run-time separation research.</strong></p>
- <p>Since run-time separation has more benefits, we started researching it first.
- The easiest way to achieve it was to use C API, because C ABI rules are much simpler than C++ one's.</p>
- <p>We created a sample project consisting of the application, library, and plugin.
- <strong>The application</strong> has been linked to the library and used it to load the plugin.
- <strong>The library</strong> provided functions to register plugins and call their functions.
- <strong>The plugin</strong> provided functions for the library and called library functions.</p>
- <p>The research was successful: the sample project worked correctly under Linux and Windows. However, since MJIN is currently a single large entity, we postponed C API application until we finish build-time separation.</p>
- <p><strong>Build-time separation start.</strong></p>
- <p>We extracted the following modules from MJIN:</p>
- <ul>
- <li>
- <p>Android: provides Java Native Interface (JNI) to MJIN</p>
- </li>
- <li>
- <p>Sound: provides access to OpenAL</p>
- </li>
- <li>
- <p>UIQt: provides access to Qt UI</p>
- </li>
- </ul>
- <p>Sound and UIQt modules are currently statically linked into MJIN library, while Android module is already a separate library due to JNI requirements.</p>
- <p>In the coming year, we're going to significantly restructure MJIN so that it suits as many platforms as possible.</p>
- <p>That's it for describing the start of MJIN library separation into modules.</p>
- <p class="subheader">Category: <a href="http://opengamestudio.org/category/news.html">News</a>
-
- </p>
-
-
-
- </article>
- </div>
-
-
-
- <aside class="large-3 columns">
-
-
-
-
-
-
- <h5 class="sidebar-title">Ads</h5>
- <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
-
- <ins class="adsbygoogle"
- style="display:block"
- data-ad-client="ca-pub-4473792248813084"
- data-ad-slot="9024247127"
- data-ad-format="auto"></ins>
- <script>
- (adsbygoogle = window.adsbygoogle || []).push({});
- </script>
-
- </aside>
-
- </div>
-
-
-
- <footer class="row">
- <div class="large-12 columns">
- <hr />
- <div class="row">
- <div class="large-7 columns">
- <p>Proudly powered by <a href="http://getpelican.com">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.</p>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-3773114-1']);
- _gaq.push(['_trackPageview']);
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
- </footer>
|