按照关于的示例GLKViewController
,我实现了更新回调,如下所示
- (void)update
{
}
但是我查了源码,好像没有定义更新消息,为什么我可以使用更新?
@protocol GLKViewDelegate <NSObject>
@required
/*
Required method for implementing GLKViewDelegate. This draw method variant should be used when not subclassing GLKView.
This method will not be called if the GLKView object has been subclassed and implements -(void)drawRect:(CGRect)rect.
*/
- (void)glkView:(GLKView *)view drawInRect:(CGRect)rect;
@end