Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

157 Zeilen
6.4KB

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