Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

139 строки
5.4KB

  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. a
  61. {
  62. color: #3A91CB;
  63. text-decoration: none;
  64. }
  65. table
  66. {
  67. border-collapse: collapse;
  68. }
  69. table, th, td
  70. {
  71. border: 1px solid #aaa;
  72. padding: 0.5em;
  73. margin-top: 0.5em;
  74. margin-bottom: 0.5em;
  75. }
  76. </style>
  77. </head>
  78. <body>
  79. <div id="header">
  80. <strong id="title">Open Game Studio</strong>
  81. <a href="../../en/news/index.html">News</a>
  82. <a href="../../en/game/index.html">Games</a>
  83. <a href="../../en/tool/index.html">Tools</a>
  84. <a href="../../en/page/about.html">About</a>
  85. <div id="lang">
  86. <a href="../../en/news/2016-november-recap.html">EN</a>
  87. <a href="../../ru/news/2016-november-recap.html">RU</a>
  88. </div>
  89. </div>
  90. <center>
  91. <h1>In the news...</h1>
  92. <div class="news_item">
  93. <h2 class="news_item_title">
  94. <a href="2016-november-recap.html">November 2016 recap</a>
  95. </h2>
  96. <p class="news_item_date">
  97. 2016-12-15 00:00
  98. </p>
  99. <div class="news_item_contents">
  100. <p><img src="../../images/2016-12-15_2016-november-recap.png" alt="Construction of a building" /></p>
  101. <p>This article describes the start of MJIN library separation into modules.</p>
  102. <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>
  103. <p>We decided to have a look at two approaches to separate MJIN into modules: build-time separation and run-time one.
  104. <strong>Build-time</strong> separation means MJIN becomes highly configurable and each platform gets specifically tailored MJIN build.
  105. <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>
  106. <p><strong>Run-time separation research.</strong></p>
  107. <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>
  108. <p>We created a sample project consisting of the application, library, and plugin:</p>
  109. <ul>
  110. <li><strong>The application</strong> has been linked to the library and used it to load the plugin.</li>
  111. <li><strong>The library</strong> provided functions to register plugins and call their functions.</li>
  112. <li><strong>The plugin</strong> provided functions for the library and called library functions.</li>
  113. </ul>
  114. <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>
  115. <p><strong>Build-time separation start.</strong></p>
  116. <p>We extracted the following modules from MJIN:</p>
  117. <ul>
  118. <li>Android: provides Java Native Interface (JNI) to MJIN</li>
  119. <li>Sound: provides access to OpenAL</li>
  120. <li>UIQt: provides access to Qt UI</li>
  121. </ul>
  122. <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>
  123. <p>In the coming year, we're going to significantly restructure MJIN so that it suits as many platforms as possible.</p>
  124. <p>That's it for describing the start of MJIN library separation into modules.</p>
  125. </div>
  126. </div>
  127. <div id="footer">
  128. The site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>
  129. from <a href="http://github.com/ogstudio/site-opengamestudio">this source code</a>.
  130. The site is hosted by <a href="https://pages.github.com">GitHub Pages</a>.
  131. </div>
  132. </center>
  133. </body>
  134. </html>