When subclassing GLKViewController
, it has two methods amongst others:
- (void)update
,- and
- (void)glkView:(GLKView *)view drawInRect:(CGRect)rect
.
Both of these methods seem to be called each frame. Documentation reads:
As an alternative to implementing a
glkViewControllerUpdate:
method in a delegate, your subclass can provide an update method instead. The method must have the following signature:
- (void)update;
Which one should I override in my code, and which of them should contain draw calls?