I am looking at the EAGLView files from the apple iphone sample code and I am trying to understand how EAGLViewDelegate protocol
Note: I have pasted the relevant code
EAGLView.h
@protocol EAGLViewDelegate - (void) didResizeEAGLSurfaceForView:(EAGLView*)view; //Called whenever the EAGL surface has been resized @end
@interface EAGLView : UIView { @private id _delegate; }
@property(assign) id delegate;
EAGLView.m
@implementation EAGLView
@synthesize delegate = _delegate,
//...... @end
Question:
How does this didResizeEAGLSurfaceForView function get called? I don't see any implementation of it?