Environment: ios, xcode 6.2,ipad model: ME814HB/A , ios: 8.1.2
I ran the example code of ios and managed to make it work correctly.
now I want to create a device of irrlicht within my framework the same way I did in windows:
Code: Select all
irr::SIrrlichtCreationParameters params;
params.DriverType = irr::video::EDT_OGLES1;
params.WindowId = view;
params.Bits = 16;
params.Fullscreen = false;
params.Stencilbuffer = false;
params.Vsync = false;
irr::IrrlichtDevice* device = createDeviceEx((const irr::SIrrlichtCreationParameters)params);
What I want to do is to run my own main and give irrlicht a handle to the view (like in windows).
so I did this :
Code: Select all
void irrlicht_main()
{
NSLog(@"Not Suppose to enter here ");
}
int main(int argc, char * argv[])
{
@autoreleasepool {
int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
return retVal;
}
}
problems:
1) it did not solved my linkedge problem
2) I fear I'm doing something wrong. from the source code of irrlicht it seems that it's taking over all the ios app,
and in my implemetation i want that irrlicht will manage only one view. Is there a way To do what I want?
Thanks