I am creating GLES2 device with Irrlicht and I am passing the window handle from SDL2 .
The problem is that when I pass the handle SDL no longer registers any events other than SDL_APP_DIDENTERFOREGROUND and SDL_APP_DIDENTERBACKGROUND . But I can see the models and UI's rendering. If I remove this line
Code: Select all
param.WindowId = reinterpret_cast<void *>(info.info.uikit.window);
Code: Select all
SIrrlichtCreationParameters param;
param.DriverType = EDT_OGLES2;
param.WindowSize = dimension2d<u32>(displayMode.w,displayMode.h);
param.IgnoreInput= true;
param.WindowId = reinterpret_cast<void *>(info.info.uikit.window);
param.Bits = 24;
param.ZBufferBits = 16;
param.AntiAlias = 0;
param.EventReceiver = NULL;
IrrlichtDevice *device = createDeviceEx(param);
Alex