[LayaAirIDE 2.0]Swift中接入Native,执行完drawInRect后不执行update了! 附重现Demo!
在Swift中接入,调用到- (void)glkView:(GLKView *)view drawInRect:(CGRect)rect之后就不执行update 了,看你们的Demo是会继续执行update 方法的
//------------------------------------------------------------------------------
- (void)update {
NSLog(@"----------------------%s----------------------", __FUNCTION__);
}
//------------------------------------------------------------------------------
- (void)glkView:(GLKView *)view drawInRect:(CGRect)rect {
//conchRuntime renderFrame
[self.m_pConchRuntime renderFrame];
NSLog(@"----------------------%s----------------------", __FUNCTION__);
}
下附重现Demo!
https://github.com/al1020119/LayaNativeSwiftOC
不知道有没有传成功,看不到结果,直接附github连接!
//------------------------------------------------------------------------------
- (void)update {
NSLog(@"----------------------%s----------------------", __FUNCTION__);
}
//------------------------------------------------------------------------------
- (void)glkView:(GLKView *)view drawInRect:(CGRect)rect {
//conchRuntime renderFrame
[self.m_pConchRuntime renderFrame];
NSLog(@"----------------------%s----------------------", __FUNCTION__);
}
下附重现Demo!
https://github.com/al1020119/LayaNativeSwiftOC
不知道有没有传成功,看不到结果,直接附github连接!
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
185*****051
赞同来自:
// //conchRuntime 初始化ConchRuntime引擎
// CGRect frame = UIScreen.mainScreen.bounds;
// m_pConchRuntime = [[conchRuntime alloc]initWithView:m_pGLKView frame:frame EAGLContext:m_pGLContext downloadThreadNum:3];
// NSLog(@"-----------------------%s-----------------------", __FUNCTION__);