Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

2016-november-recap.html 4.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. <center>
  31. <h1>In the news...</h1>
  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="footer">
  68. The site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>
  69. from <a href="http://github.com/ogstudio/site-opengamestudio">this source code</a>.
  70. The site is hosted by <a href="https://pages.github.com">GitHub Pages</a>.
  71. </div>
  72. </center>
  73. </body>
  74. </html>