
298 8. Mobile 3D: OpenGLES
#import <UIKit/UIKit.h>
// forward class reference to main application class
@class EAGLView;
@interface glesIosAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
EAGLView *glView; // will point to the OpenGL View object
}
// connect to object in XIB file
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet EAGLView *glView;
@end
Listing 8.4: The application delegate header file defines sub-class with its application
specific members.
defined in the XIB (resource) file the standard approach of iOS is to call its
initWithCoder: metho d during creation. It is in this method that ...