说明: #import "GLAppDelegate.h"
#import "EAGLView.h"
@implementation GLAppDelegate
@synthesize window
@synthesize glView
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
glView.animationInterval = 1.0 / 6.0
[glView startAnimation] }
- (void)applicationWillResignActive:(UIApplication *)application
{
glView.animationInterval = 1.0 / 5.0
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
glView.animationInterval = 1.0 / 6.0
}
- (void)dealloc
{
[window release]
[glView release]
[super dealloc]
}
@end
(#import "GLAppDelegate.h"
#import "EAGLView.h"
@implementation GLAppDelegate
@synthesize window
@synthesize glView
- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
glView.animationInterval = 1.0/6.0
[glView startAnimation] }
- (void)applicationWillResignActive:(UIApplication*)application
{
glView.animationInterval = 1.0/5.0
}
- (void)applicationDidBecomeActive:(UIApplication*)application
{
glView.animationInterval = 1.0/6.0
}
- (void)dealloc
{
[window release]
[glView release]
[super dealloc]
}
@end
)
文件列表:
GL
..\.DS_Store,6148,2011-07-16
..\build
..\.....\Debug-iphonesimulator
..\.....\.....................\GL.app
..\.....\.....................\......\GL,38628,2011-07-16
..\.....\.....................\......\Info.plist,805,2011-07-16
..\.....\.....................\......\MainWindow.nib,1177,2011-07-16
..\.....\.....................\......\micronapalmv2.obj,19581,2011-07-16
..\.....\.....................\......\PkgInfo,8,2011-07-16
..\.....\.....................\......\Shader.fsh,207,2011-07-16
..\.....\.....................\......\Shader.vsh,341,2011-07-16
..\.....\.....................\GL.app.dSYM
..\.....\.....................\...........\Contents
..\.....\.....................\...........\........\Info.plist,586,2011-07-16
..\.....\.....................\...........\........\Resources
..\.....\.....................\...........\........\.........\DWARF
..\.....\.....................\...........\........\.........\.....\GL,84837,2011-07-16
..\.....\GL.build
..\.....\........\Debug
..\.....\........\.....\GL.build
..\.....\........\.....\........\build-state.dat,1443,2011-07-16
..\.....\........\.....\........\build-state~.dat,1443,2011-07-16
..\.....\........\.....\........\GL.dep,1169,2011-07-16
..\.....\........\.....\........\GL~.dep,1169,2011-07-16
..\.....\........\Debug-iphoneos
..\.....\........\..............\GL.build
..\.....\........\..............\........\build-state.dat,9014,2011-07-16
..\.....\........\..............\........\GL.dep,3037,2011-07-16
..\.....\........\Debug-iphonesimulator
..\.....\........\.....................\GL.build
..\.....\........\.....................\........\build-state.dat,28930,2011-07-16
..\.....\........\.....................\........\build-state~.dat,28930,2011-07-16
..\.....\........\.....................\........\GL-all-target-headers.hmap,793,2011-07-16
..\.....\........\.....................\........\GL-generated-files.hmap,121,2011-07-16
..\.....\........\.....................\........\GL-own-target-headers.hmap,793,2011-07-16
..\.....\........\.....................\........\GL-project-headers.hmap,931,2011-07-16
..\.....\........\.....................\........\GL.dep,2828,2011-07-16
..\.....\........\.....................\........\GL.hmap,1699,2011-07-16
..\.....\........\.....................\........\GL~.dep,2828,2011-07-16
..\.....\........\.....................\........\Objects-normal
..\.....\........\.....................\........\..............\i386
..\.....\........\.....................\........\..............\....\EAGLView.o,55824,2011-07-16
..\.....\........\.....................\........\..............\....\ES1Renderer.o,16816,2011-07-16
..\.....\........\.....................\........\..............\....\ES2Renderer.o,24836,2011-07-16
..\.....\........\.....................\........\..............\....\GL.LinkFileList,507,2011-07-16
..\.....\........\.....................\........\..............\....\GLAppDelegate.o,49956,2011-07-16
..\.....\........\.....................\........\..............\....\main.o,6272,2011-07-16
..\.....\........\GL.pbxindex
..\.....\........\...........\categories.pbxbtree,1364,2011-07-16
..\.....\........\...........\cdecls.pbxbtree,170088,2011-07-16
..\.....\........\...........\decls.pbxbtree,167784,2011-07-16
..\.....\........\...........\files.pbxbtree,3368,2011-07-16
..\.....\........\...........\imports.pbxbtree,9596,2011-07-16
..\.....\........\...........\pbxindex.header,24,2011-07-16
..\.....\........\...........\protocols.pbxbtree,1984,2011-07-16
..\.....\........\...........\refs.pbxbtree,130024,2011-07-16
..\.....\........\...........\strings.pbxstrings
..\.....\........\...........\..................\control,262164,2011-07-16
..\.....\........\...........\..................\strings,350509,2011-07-16
..\.....\........\...........\subclasses.pbxbtree,1968,2011-07-16
..\.....\........\...........\symbols0.pbxsymbols,716480,2011-07-16
..\.....\........\Release
..\.....\........\.......\GL.build
..\.....\........\.......\........\build-state.dat,1467,2011-07-16
..\.....\........\.......\........\build-state~.dat,1467,2011-07-16
..\.....\........\.......\........\GL.dep,1183,2011-07-16
..\.....\........\.......\........\GL~.dep,1183,2011-07-16
..\Classes
..\.......\EAGLView.h,1225,2010-11-09
..\.......\EAGLView.m,7577,2010-11-09
..\.......\ES1Renderer.h,607,2010-11-09
..\.......\ES1Renderer.m,3993,2010-11-09
..\.......\ES2Renderer.h,629,2010-11-09
..\.......\ES2Renderer.m,8704,2010-11-09
..\.......\ESRenderer.h,324,2010-11-09
..\.......\GLAppDelegate.h,403,2010-11-09
..\.......\GLAppDelegate.m,751,2010-11-09
..\GL-Info.plist,1233,2010-11-09
..\GL.xcodeproj
..\............\p.mode1v3,40363,2010-11-09
..\............\p.pbxuser,13211,2010-11-09
..\............\project.pbxproj,13930,2011-07-16
..\............\yz.pbxuser,3242,2011-07-16
..\............\yz.perspectivev3,42882,2011-07-16
..\GL_Prefix.pch,302,2010-11-09
..\main.m,350,2010-11-09
..\MainWindow.xib,21253,2010-11-09
..\micronapalmv2.obj,19581,2010-09-27
..\plane3.obj,555856,2008-12-25
..\Shaders
..\.......\Shader.fsh,207,2010-11-09
..\.......\Shader.vsh,341,2010-11-09
__MACOSX
........\._GL,197,2011-07-16
........\GL
........\..\._.DS_Store,82,2011-07-16
........\..\._build,159,2011-07-16
........\..\._Classes,197,2011-07-16
........\..\._GL-Info.plist,197,2010-11-09