___projectnameasidentifier___appdelegate.m

来自「simpe empty opengl application project f」· M 代码 · 共 48 行

M
48
字号
////  ___PROJECTNAMEASIDENTIFIER___AppDelegate.m//  ___PROJECTNAME___////  Created by ___FULLUSERNAME___ on ___DATE___.//  Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved.//#import "___PROJECTNAMEASIDENTIFIER___AppDelegate.h"#import "GLViewController.h"#import "GLView.h"@implementation ___PROJECTNAMEASIDENTIFIER___AppDelegate@synthesize window;@synthesize controller;- (void)applicationDidFinishLaunching:(UIApplication*)application{	CGRect	rect = [[UIScreen mainScreen] bounds];		window = [[UIWindow alloc] initWithFrame:rect];		GLViewController *theController = [[GLViewController alloc] init];	self.controller = theController;	[theController release];		GLView *glView = [[GLView alloc] initWithFrame:rect];	[window addSubview:glView];	glView.controller = controller;	glView.animationInterval = 1.0 / kRenderingFrequency;	[glView startAnimation];	[glView release];		[window makeKeyAndVisible];}- (void)dealloc{	[window release];	[controller release];	[super dealloc];}@end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?