25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

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