Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

156 строки
6.3KB

  1. <!DOCTYPE html>
  2. <head>
  3. <meta charset="utf-8" />
  4. <!-- Set the viewport width to device width for mobile -->
  5. <meta name="viewport" content="width=device-width" />
  6. <title>November 2016 recap</title>
  7. <link rel="stylesheet" href="http://opengamestudio.org/theme/css/normalize.css" />
  8. <link rel="stylesheet" href="http://opengamestudio.org/theme/css/foundation.min.css" />
  9. <link rel="stylesheet" href="http://opengamestudio.org/theme/css/style.css" />
  10. <link rel="stylesheet" href="http://opengamestudio.org/theme/css/pygments.css" />
  11. <script src="http://opengamestudio.org/theme/js/custom.modernizr.js"></script>
  12. <!-- So Firefox can bookmark->"abo this site" -->
  13. <link href="feeds/all.atom.xml" rel="alternate" title="Opensource Game Studio" type="application/atom+xml">
  14. </head>
  15. <body>
  16. <!-- Nav Bar -->
  17. <nav>
  18. <!-- Show menu items and pages -->
  19. <div class="row">
  20. <div class="large-12 columns top-bar">
  21. <h1><a href="http://opengamestudio.org">Opensource Game Studio</a></h1>
  22. </div>
  23. </div>
  24. <div class="row top-menu">
  25. <div class="large-12 columns">
  26. <a href="pages/projects.html" class="menu-button secondary">Projects</a>
  27. <a href="pages/about.html" class="menu-button secondary">About</a>
  28. </div>
  29. </div>
  30. </nav>
  31. <!-- End Nav -->
  32. <!-- Main Page Content and Sidebar -->
  33. <div class="row">
  34. <!-- Main Blog Content -->
  35. <div class="large-9 columns">
  36. <article>
  37. <header>
  38. <h3 class="article-title"><a href="http://opengamestudio.org/2016-november-recap.html" rel="bookmark"
  39. title="Permalink to November 2016 recap">November 2016 recap</a></h3>
  40. </header>
  41. <h6 class="subheader" title="2016-12-15T00:00:00+03:00">Чт 15 Декабрь 2016
  42. <a class="button secondary small translation-button" href="http://opengamestudio.org/2016-november-recap-ru.html">ru</a>
  43. </h6> <p><img alt="November recap" src="http://opengamestudio.org/2016-12-15_2016-november-recap.png" /></p>
  44. <p>This article describes the start of MJIN library separation into modules.</p>
  45. <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>
  46. <p>We decided to have a look at two approaches to separate MJIN into modules: build-time separation and run-time one.
  47. <strong>Build-time</strong> separation means MJIN becomes highly configurable and each platform gets specifically tailored MJIN build.
  48. <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>
  49. <p><strong>Run-time separation research.</strong></p>
  50. <p>Since run-time separation has more benefits, we started researching it first.
  51. The easiest way to achieve it was to use C API, because C ABI rules are much simpler than C++ one's.</p>
  52. <p>We created a sample project consisting of the application, library, and plugin.
  53. <strong>The application</strong> has been linked to the library and used it to load the plugin.
  54. <strong>The library</strong> provided functions to register plugins and call their functions.
  55. <strong>The plugin</strong> provided functions for the library and called library functions.</p>
  56. <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>
  57. <p><strong>Build-time separation start.</strong></p>
  58. <p>We extracted the following modules from MJIN:</p>
  59. <ul>
  60. <li>
  61. <p>Android: provides Java Native Interface (JNI) to MJIN</p>
  62. </li>
  63. <li>
  64. <p>Sound: provides access to OpenAL</p>
  65. </li>
  66. <li>
  67. <p>UIQt: provides access to Qt UI</p>
  68. </li>
  69. </ul>
  70. <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>
  71. <p>In the coming year, we're going to significantly restructure MJIN so that it suits as many platforms as possible.</p>
  72. <p>That's it for describing the start of MJIN library separation into modules.</p>
  73. <p class="subheader">Category: <a href="http://opengamestudio.org/category/news.html">News</a>
  74. </p>
  75. </article>
  76. </div>
  77. <!-- End Main Content -->
  78. <!-- Sidebar -->
  79. <aside class="large-3 columns">
  80. <!--k
  81. <h5 class="sidebar-title">Site</h5>
  82. <ul class="side-nav">
  83. <li><a href="http://opengamestudio.org/archives.html">Archives</a>
  84. <li><a href="http://opengamestudio.org/tags.html">Tags</a>
  85. <li><a href="http://opengamestudio.org/feeds/all.atom.xml" rel="alternate">Atom feed</a></li>
  86. </ul>
  87. <h5 class="sidebar-title">Categories</h5>
  88. <ul class="side-nav">
  89. <li><a href="http://opengamestudio.org/category/news.html">News</a></li>
  90. </ul>
  91. -->
  92. <h5 class="sidebar-title">Ads</h5>
  93. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  94. <!-- ogs2 -->
  95. <ins class="adsbygoogle"
  96. style="display:block"
  97. data-ad-client="ca-pub-4473792248813084"
  98. data-ad-slot="9024247127"
  99. data-ad-format="auto"></ins>
  100. <script>
  101. (adsbygoogle = window.adsbygoogle || []).push({});
  102. </script>
  103. </aside> <!-- End Sidebar -->
  104. </div> <!-- End Main Content and Sidebar -->
  105. <!-- Footer -->
  106. <footer class="row">
  107. <div class="large-12 columns">
  108. <hr />
  109. <div class="row">
  110. <div class="large-7 columns">
  111. <p>Proudly powered by <a href="http://getpelican.com">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.</p>
  112. </div>
  113. </div>
  114. </div>
  115. <script type="text/javascript">
  116. var _gaq = _gaq || [];
  117. _gaq.push(['_setAccount', 'UA-3773114-1']);
  118. _gaq.push(['_trackPageview']);
  119. (function() {
  120. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  121. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  122. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  123. })();
  124. </script>
  125. </footer>