November 2016 recap

October 2016 recap
This article describes the start of MJIN library separation into modules.

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.

We decided to have a look at two approaches to separate MJIN into modules: build-time separation and run-time one.
Build-time separation means MJIN becomes highly configurable and each platform gets specifically tailored MJIN build.
Run-time separation means MJIN is divided into smaller libraries that are connected at run-time, which makes it easy to change functionality without rebuilding.

Run-time separation research.

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.

We created a sample project consisting of the application, library, and plugin.
The application has been linked to the library and used it to load the plugin.
The library provided functions to register plugins and call their functions.
The plugin provided functions for the library and called library functions.

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.

Build-time separation start.

We extracted the following modules from MJIN:

  • Android: provides Java Native Interface (JNI) to MJIN
  • Sound: provides access to OpenAL
  • UIQt: provides access to Qt UI

Sound and UIQt modules are currently statically linked into MJIN library, while Android module is already a separate library due to JNI requirements.

In the coming year, we’re going to significantly restructure MJIN so that it suits as many platforms as possible.

That’s it for describing the start of MJIN library separation into modules.

This entry was posted in Monthly recap, News and tagged , . Bookmark the permalink.

Home Forums November 2016 recap

This topic contains 0 replies, has 1 voice, and was last updated by  kornerr 9 months, 1 week ago.

Viewing 1 post (of 1 total)
Author Posts
Author Posts
15 December 2016 at 10:51 #2435

kornerr
Participant

[lang_en] This article describes the start of MJIN library separation into modules. [/lang_en] [lang_ru] Эта статья описывает начало разделения библио
[See the full post at: http://opengamestudio.org/news/2426]


  Quote
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.