You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

142 lines
5.5KB

  1. <!DOCTYPE html>
  2. <html>
  3. <meta charset="utf-8">
  4. <head>
  5. <style>
  6. #header
  7. {
  8. background: #2BA6E3;
  9. padding: 0.7em;
  10. text-align: left;
  11. }
  12. #header a
  13. {
  14. color: white;
  15. text-decoration: none;
  16. padding: 0.5em 1em 0.5em 1em;
  17. }
  18. #lang
  19. {
  20. float: right;
  21. }
  22. .news_item
  23. {
  24. background: #FFFFFF;
  25. width: 720px;
  26. padding: 1em;
  27. margin-top: 2em;
  28. margin-bottom: 2em;
  29. border: 1px solid #E0E0E0;
  30. text-align: left;
  31. }
  32. .news_item_contents
  33. {
  34. color: #444;
  35. line-height: 1.5em;
  36. }
  37. .news_item_date
  38. {
  39. margin-bottom: 2em;
  40. color: #aaa;
  41. }
  42. html
  43. {
  44. font-family: sans-serif;
  45. }
  46. body
  47. {
  48. background: #FAFAFA;
  49. }
  50. code, pre
  51. {
  52. font-family: monospace, serif;
  53. font-size: 1em;
  54. color: #7f0a0c;
  55. }
  56. img
  57. {
  58. width: 720px;
  59. }
  60. .mobile
  61. {
  62. width: 320px;
  63. }
  64. a
  65. {
  66. color: #3A91CB;
  67. }
  68. table
  69. {
  70. border-collapse: collapse;
  71. }
  72. table, th, td
  73. {
  74. border: 1px solid #aaa;
  75. padding: 0.5em;
  76. margin-top: 0.5em;
  77. margin-bottom: 0.5em;
  78. }
  79. </style>
  80. </head>
  81. <body>
  82. <div id="header">
  83. <strong id="title">Open Game Studio</strong>
  84. <a href="../../en/news/index.html">News</a>
  85. <a href="../../en/game/index.html">Games</a>
  86. <a href="../../en/tool/index.html">Tools</a>
  87. <a href="../../en/page/about.html">About</a>
  88. <div id="lang">
  89. <a href="../../en/news/2016-november-recap.html">EN</a>
  90. <a href="../../ru/news/2016-november-recap.html">RU</a>
  91. </div>
  92. </div>
  93. <center>
  94. <h1>In the news...</h1>
  95. <div class="news_item">
  96. <h2 class="news_item_title">
  97. <a href="2016-november-recap.html">November 2016 recap</a>
  98. </h2>
  99. <p class="news_item_date">
  100. 2016-12-15 00:00
  101. </p>
  102. <div class="news_item_contents">
  103. <p><img src="../../images/2016-12-15_2016-november-recap.png" alt="Construction of a building" /></p>
  104. <p>This article describes the start of MJIN library separation into modules.</p>
  105. <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>
  106. <p>We decided to have a look at two approaches to separate MJIN into modules: build-time separation and run-time one.
  107. <strong>Build-time</strong> separation means MJIN becomes highly configurable and each platform gets specifically tailored MJIN build.
  108. <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>
  109. <p><strong>Run-time separation research.</strong></p>
  110. <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>
  111. <p>We created a sample project consisting of the application, library, and plugin:</p>
  112. <ul>
  113. <li><strong>The application</strong> has been linked to the library and used it to load the plugin.</li>
  114. <li><strong>The library</strong> provided functions to register plugins and call their functions.</li>
  115. <li><strong>The plugin</strong> provided functions for the library and called library functions.</li>
  116. </ul>
  117. <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>
  118. <p><strong>Build-time separation start.</strong></p>
  119. <p>We extracted the following modules from MJIN:</p>
  120. <ul>
  121. <li>Android: provides Java Native Interface (JNI) to MJIN</li>
  122. <li>Sound: provides access to OpenAL</li>
  123. <li>UIQt: provides access to Qt UI</li>
  124. </ul>
  125. <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>
  126. <p>In the coming year, we're going to significantly restructure MJIN so that it suits as many platforms as possible.</p>
  127. <p>That's it for describing the start of MJIN library separation into modules.</p>
  128. </div>
  129. </div>
  130. <div id="footer">
  131. The site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>
  132. from <a href="http://github.com/ogstudio/site-opengamestudio">this source code</a>.
  133. The site is hosted by <a href="https://pages.github.com">GitHub Pages</a>.
  134. </div>
  135. </center>
  136. </body>
  137. </html>