No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

88 líneas
5.0KB

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