Irrlicht + Android + Qt

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
crazymax
Posts: 4
Joined: Wed Dec 16, 2015 11:03 am

Irrlicht + Android + Qt

Post by crazymax »

I've made all folowing this tutorial http://irrlicht.sourceforge.net/forum/v ... =5&t=49755. 27.HelloWorld_Android works nice on my phone.
But I have Qt project which uses Irrlicht, and now i'm trying to port this project to Android. But it chases.
The problem is in CIrrDeviceAndroid.cpp (part of irrLicht lib)

Code: Select all

Android = (android_app*)(param.PrivateData);
param.PrivateData == NULL at this line.
in main.cpp of 27th example

Code: Select all

 
void android_main(android_app* app){
//some code
 param.PrivateData = app;
//some code
IrrlichtDevice *device = createDeviceEx(param);
 
so Private Data must contain android_app*, but how I can get it in Qt?
my current code related to params

Code: Select all

SIrrlichtCreationParameters createParams;
    createParams.WindowId = ( void * ) this->winId();
    createParams.AntiAlias = 1;
    createParams.DriverType = EDT_OPENGL;
    createParams.Bits = 16;
    createParams.DriverMultithreaded = true;
    createParams.IgnoreInput = false;
    createParams.HighPrecisionFPU = true;
    createParams.Vsync = false;
    createParams.Stencilbuffer = false;
 
    //added
    createParams.WindowSize = windowSize;
 
 
    _device = createDeviceEx( createParams );
PS: I know that this question is more related to Qt than irrlicht, but maybe someone knows the answer or workaround
Post Reply