Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

82 řádky
4.7KB

  1. <!DOCTYPE html>
  2. <html>
  3. <meta charset="utf-8">
  4. <head>
  5. <link rel="stylesheet" href="../../style.css">
  6. </head>
  7. <body>
  8. <script data-goatcounter="https://services.opengamestudio.org:443/count" async src="//services.opengamestudio.org:443/count.js"></script>
  9. <div id="header">
  10. <div class="header2">
  11. <div class="menu">
  12. <a href="../../en/news/index.html">News</a>
  13. <a href="../../en/game/index.html">Games</a>
  14. <a href="../../en/tool/index.html">Tools</a>
  15. <a href="../../en/page/about.html">About</a>
  16. </div>
  17. <div id="lang">
  18. <a href="../../en/news/2016-november-recap.html">EN</a>
  19. <a href="../../ru/news/2016-november-recap.html">RU</a>
  20. </div>
  21. <div class="clear"></div>
  22. </div>
  23. </div>
  24. <h3 class="left_item_title">In the news...</h3>
  25. <center>
  26. <div class="news_item">
  27. <h2 class="news_item_title">
  28. <a href="2016-november-recap.html">November 2016 recap</a>
  29. </h2>
  30. <p class="news_item_date">
  31. 2016-12-15 00:00
  32. </p>
  33. <div class="news_item_contents">
  34. <p><img src="../../images/2016-12-15_2016-november-recap.png" alt="Construction of a building" /></p>
  35. <p>This article describes the start of MJIN library separation into modules.</p>
  36. <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>
  37. <p>We decided to have a look at two approaches to separate MJIN into modules: build-time separation and run-time one.
  38. <strong>Build-time</strong> separation means MJIN becomes highly configurable and each platform gets specifically tailored MJIN build.
  39. <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>
  40. <p><strong>Run-time separation research.</strong></p>
  41. <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>
  42. <p>We created a sample project consisting of the application, library, and plugin:</p>
  43. <ul>
  44. <li><strong>The application</strong> has been linked to the library and used it to load the plugin.</li>
  45. <li><strong>The library</strong> provided functions to register plugins and call their functions.</li>
  46. <li><strong>The plugin</strong> provided functions for the library and called library functions.</li>
  47. </ul>
  48. <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>
  49. <p><strong>Build-time separation start.</strong></p>
  50. <p>We extracted the following modules from MJIN:</p>
  51. <ul>
  52. <li>Android: provides Java Native Interface (JNI) to MJIN</li>
  53. <li>Sound: provides access to OpenAL</li>
  54. <li>UIQt: provides access to Qt UI</li>
  55. </ul>
  56. <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>
  57. <p>In the coming year, we're going to significantly restructure MJIN so that it suits as many platforms as possible.</p>
  58. <p>That's it for describing the start of MJIN library separation into modules.</p>
  59. </div>
  60. </div>
  61. <div id="disqus_thread"></div>
  62. <script>
  63. var disqus_config = function () {
  64. this.page.url = "https://opengamestudio.org/en/news/2016-november-recap.html";
  65. this.page.identifier = "2016-november-recap.html";
  66. };
  67. (function() { // DON'T EDIT BELOW THIS LINE
  68. var d = document, s = d.createElement('script');
  69. s.src = 'https://opengamestudio.disqus.com/embed.js';
  70. s.setAttribute('data-timestamp', +new Date());
  71. (d.head || d.body).appendChild(s);
  72. })();
  73. </script>
  74. <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  75. <div id="footer">
  76. The site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>
  77. from <a href="http://github.com/ogstudio/site-opengamestudio">this source code</a>.
  78. </div>
  79. </center>
  80. </body>
  81. </html>