Finally, i got to work with some C functions enableDimming and disableDimming. I've compiled the plugin with QT and works like a charm . However, the next step getting work the basic steam library still doesn't work. mmmm, i supossed there is my .pro file that hasn't well configured. I'll try to do more tests this week.
The official Steam example is running on Visual Studio. So, do you say it couldn't work with mingw? oh no...
It doesn't look valid to me, or at least portable. First, MSVC shouldn't be used directly. Since desktop gideros is based on QT, it is better to use 'qmake' and let Qt choose the compiler itself. Code itself looks good otherwise.
The tedious thing with plugins is that each target platform has its own way to do things. It is not an issue if your plugin just does basic computing (math/crypto/codec/...) but if you need to call OS functions then you need specific code for each platform: Java/JNI for Android, ObjC for iOS, etc
I think it would be good to have some sort of 'Hello World' plugin, something that does nothing useful but which could serve as a template for developing real plugins, instead of taking a full featured plugin and then removing code.
I will try to write new tutorial about plugin developing using Sol binding framework. Currently it works for desktops, maybe we can extend it to mobile platforms because Qt allows to build Android and iOS libraries.
Comments
The official Steam example is running on Visual Studio. So, do you say it couldn't work with mingw? oh no...
First, MSVC shouldn't be used directly. Since desktop gideros is based on QT, it is better to use 'qmake' and let Qt choose the compiler itself.
Code itself looks good otherwise.
The tedious thing with plugins is that each target platform has its own way to do things. It is not an issue if your plugin just does basic computing (math/crypto/codec/...) but if you need to call OS functions then you need specific code for each platform: Java/JNI for Android, ObjC for iOS, etc
I think it would be good to have some sort of 'Hello World' plugin, something that does nothing useful but which could serve as a template for developing real plugins, instead of taking a full featured plugin and then removing code.
Likes: simwhi
With Sol you can write plugins like this:
[C++ code]
Likes: vitalitymobile, simwhi, pie, keszegh
Likes: pie