but live wallpaper use the draw iteration inside java.
how to make the draw iteratiin inside java and not using native activity ?
thanks in advance
Code: Select all
void android_main(struct android_app* app)
{
app_dummy();
struct irr::SIrrlichtCreationParameters p;
p.DriverType = video::EDT_OGLES2;
// The android app object is needed by the irrlicht device.
p.PrivateData = app;
p.WindowSize = core::dimension2d<u32>(1280,800);
IrrlichtDevice *device = createDeviceEx(p);
}
Code: Select all
void load()
{
__android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "Before Create Device");
device=createDevice( video::EDT_OGLES2, core::dimension2d<u32>(320, 240), 16, false, false, false, 0);
__android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "After Create Device");
driver = device->getVideoDriver();
smgr = device->getSceneManager();
}