Permalink
Browse files

the meat

  • Loading branch information...
epatel committed Dec 7, 2010
1 parent 77e60e4 commit 2f808f6388824d9d873253ac55429b0d9753e551
Showing with 31,122 additions and 0 deletions.
  1. +289 −0 AC3D Demo/AC3D Demo.xcodeproj/project.pbxproj
  2. +8 −0 AC3D Demo/AC3D_Demo_Prefix.pch
  3. +19 −0 AC3D Demo/Classes/AC3D_DemoAppDelegate.h
  4. +37 −0 AC3D Demo/Classes/AC3D_DemoAppDelegate.m
  5. +46 −0 AC3D Demo/Classes/EAGLView.h
  6. +192 −0 AC3D Demo/Classes/EAGLView.m
  7. +30 −0 AC3D Demo/Info.plist
  8. +223 −0 AC3D Demo/MainWindow.xib
  9. +14 −0 AC3D Demo/main.m
  10. +148 −0 AC3DTexture.h
  11. +634 −0 AC3DTexture.m
  12. BIN Ball Demo/15.png
  13. +8 −0 Ball Demo/AC3D_Demo_Prefix.pch
  14. +319 −0 Ball Demo/Ball Demo.xcodeproj/project.pbxproj
  15. +19 −0 Ball Demo/Classes/AC3D_DemoAppDelegate.h
  16. +37 −0 Ball Demo/Classes/AC3D_DemoAppDelegate.m
  17. +57 −0 Ball Demo/Classes/EAGLView.h
  18. +259 −0 Ball Demo/Classes/EAGLView.m
  19. +30 −0 Ball Demo/Info.plist
  20. +223 −0 Ball Demo/MainWindow.xib
  21. +315 −0 Ball Demo/Matrix.c
  22. +77 −0 Ball Demo/Matrix.h
  23. BIN Ball Demo/Quaternion tutorial.webloc
  24. +243 −0 Ball Demo/Quaternion.c
  25. +63 −0 Ball Demo/Quaternion.h
  26. +77 −0 Ball Demo/Vector.c
  27. +46 −0 Ball Demo/Vector.h
  28. +2,415 −0 Ball Demo/ball.ac
  29. +14 −0 Ball Demo/main.m
  30. +96 −0 Ball Demo/shadow.ac
  31. +262 −0 Ball Demo/table.ac
  32. +19 −0 Clock Demo/Classes/Clock_DemoAppDelegate.h
  33. +37 −0 Clock Demo/Classes/Clock_DemoAppDelegate.m
  34. +50 −0 Clock Demo/Classes/EAGLView.h
  35. +198 −0 Clock Demo/Classes/EAGLView.m
  36. +291 −0 Clock Demo/Clock Demo.xcodeproj/project.pbxproj
  37. +30 −0 Clock Demo/Clock_Demo-Info.plist
  38. +8 −0 Clock Demo/Clock_Demo_Prefix.pch
  39. +233 −0 Clock Demo/MainWindow.xib
  40. +1,353 −0 Clock Demo/clock.ac
  41. +14 −0 Clock Demo/main.m
  42. +83 −0 OpenGL_Internal.h
  43. +37 −0 Thrust Demo/Classes/EAGLView.h
  44. +141 −0 Thrust Demo/Classes/EAGLView.m
  45. +33 −0 Thrust Demo/Classes/ES1Renderer.h
  46. +164 −0 Thrust Demo/Classes/ES1Renderer.m
  47. +16 −0 Thrust Demo/Classes/ESRenderer.h
  48. +19 −0 Thrust Demo/Classes/Thrust_DemoAppDelegate.h
  49. +42 −0 Thrust Demo/Classes/Thrust_DemoAppDelegate.m
  50. +231 −0 Thrust Demo/MainWindow.xib
  51. BIN Thrust Demo/Screenshot AC3D Hierarchy.png
  52. +311 −0 Thrust Demo/Thrust Demo.xcodeproj/project.pbxproj
  53. +30 −0 Thrust Demo/Thrust_Demo-Info.plist
  54. +14 −0 Thrust Demo/Thrust_Demo_Prefix.pch
  55. BIN Thrust Demo/goldfoil.jpg
  56. +14,096 −0 Thrust Demo/lunarlander.ac
  57. +14 −0 Thrust Demo/main.m
  58. +48 −0 TrafficLight Demo/Classes/EAGLView.h
  59. +272 −0 TrafficLight Demo/Classes/EAGLView.m
  60. +19 −0 TrafficLight Demo/Classes/TrafficLight_DemoAppDelegate.h
  61. +37 −0 TrafficLight Demo/Classes/TrafficLight_DemoAppDelegate.m
  62. +270 −0 TrafficLight Demo/MainWindow.xib
  63. +297 −0 TrafficLight Demo/TrafficLight Demo.xcodeproj/project.pbxproj
  64. +30 −0 TrafficLight Demo/TrafficLight_Demo-Info.plist
  65. +8 −0 TrafficLight Demo/TrafficLight_Demo_Prefix.pch
  66. +14 −0 TrafficLight Demo/main.m
  67. BIN TrafficLight Demo/malmoe.png
  68. BIN TrafficLight Demo/sign.png
  69. +2,133 −0 TrafficLight Demo/tlight.ac
  70. +72 −0 ac3d_reader.h
  71. +1,721 −0 ac3d_reader.m
  72. +43 −0 licenses.txt
  73. +2,494 −0 thumbsup.ac
@@ -0,0 +1,289 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 45;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1D3623260D0F684500981E51 /* AC3D_DemoAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* AC3D_DemoAppDelegate.m */; };
+ 1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; };
+ 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
+ 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
+ 28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; };
+ 28FD14FE0DC6FC130079059D /* EAGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 28FD14FD0DC6FC130079059D /* EAGLView.m */; };
+ 28FD15000DC6FC520079059D /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28FD14FF0DC6FC520079059D /* OpenGLES.framework */; };
+ 28FD15080DC6FC5B0079059D /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28FD15070DC6FC5B0079059D /* QuartzCore.framework */; };
+ 3A0B47B20EFD8CFC001B3883 /* thumbsup.ac in Resources */ = {isa = PBXBuildFile; fileRef = 3A0B47AF0EFD8CFC001B3883 /* thumbsup.ac */; };
+ 3A2BC7FB12AED24C00A7D2A3 /* ac3d_reader.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A2BC7FA12AED24C00A7D2A3 /* ac3d_reader.m */; };
+ 3A2BC80212AED2A600A7D2A3 /* AC3DTexture.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A2BC80112AED2A600A7D2A3 /* AC3DTexture.m */; };
+ 3AFC85E50EFD8C6600055062 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3AFC85E40EFD8C6600055062 /* CoreGraphics.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ 1D3623240D0F684500981E51 /* AC3D_DemoAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AC3D_DemoAppDelegate.h; sourceTree = "<group>"; };
+ 1D3623250D0F684500981E51 /* AC3D_DemoAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AC3D_DemoAppDelegate.m; sourceTree = "<group>"; };
+ 1D6058910D05DD3D006BFB54 /* AC3DDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AC3DDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+ 28AD733E0D9D9553002E5188 /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = "<group>"; };
+ 28FD14FC0DC6FC130079059D /* EAGLView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EAGLView.h; sourceTree = "<group>"; };
+ 28FD14FD0DC6FC130079059D /* EAGLView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EAGLView.m; sourceTree = "<group>"; };
+ 28FD14FF0DC6FC520079059D /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
+ 28FD15070DC6FC5B0079059D /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
+ 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ 32CA4F630368D1EE00C91783 /* AC3D_Demo_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AC3D_Demo_Prefix.pch; sourceTree = "<group>"; };
+ 3A0B47AF0EFD8CFC001B3883 /* thumbsup.ac */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = thumbsup.ac; path = ../thumbsup.ac; sourceTree = SOURCE_ROOT; };
+ 3A0B47B10EFD8CFC001B3883 /* ac3d_reader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ac3d_reader.h; path = ../ac3d_reader.h; sourceTree = SOURCE_ROOT; };
+ 3A2BC7FA12AED24C00A7D2A3 /* ac3d_reader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ac3d_reader.m; path = ../ac3d_reader.m; sourceTree = SOURCE_ROOT; };
+ 3A2BC80012AED2A600A7D2A3 /* AC3DTexture.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AC3DTexture.h; path = ../AC3DTexture.h; sourceTree = SOURCE_ROOT; };
+ 3A2BC80112AED2A600A7D2A3 /* AC3DTexture.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AC3DTexture.m; path = ../AC3DTexture.m; sourceTree = SOURCE_ROOT; };
+ 3A2BC80512AED2D300A7D2A3 /* OpenGL_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OpenGL_Internal.h; path = ../OpenGL_Internal.h; sourceTree = SOURCE_ROOT; };
+ 3AFC85E40EFD8C6600055062 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+ 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 1D60588F0D05DD3D006BFB54 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
+ 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
+ 28FD15000DC6FC520079059D /* OpenGLES.framework in Frameworks */,
+ 28FD15080DC6FC5B0079059D /* QuartzCore.framework in Frameworks */,
+ 3AFC85E50EFD8C6600055062 /* CoreGraphics.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 080E96DDFE201D6D7F000001 /* Classes */ = {
+ isa = PBXGroup;
+ children = (
+ 28FD14FC0DC6FC130079059D /* EAGLView.h */,
+ 28FD14FD0DC6FC130079059D /* EAGLView.m */,
+ 1D3623240D0F684500981E51 /* AC3D_DemoAppDelegate.h */,
+ 1D3623250D0F684500981E51 /* AC3D_DemoAppDelegate.m */,
+ );
+ path = Classes;
+ sourceTree = "<group>";
+ };
+ 19C28FACFE9D520D11CA2CBB /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 1D6058910D05DD3D006BFB54 /* AC3DDemo.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
+ isa = PBXGroup;
+ children = (
+ 3A0B47AF0EFD8CFC001B3883 /* thumbsup.ac */,
+ 3A0B47B10EFD8CFC001B3883 /* ac3d_reader.h */,
+ 3A2BC7FA12AED24C00A7D2A3 /* ac3d_reader.m */,
+ 3A2BC80012AED2A600A7D2A3 /* AC3DTexture.h */,
+ 3A2BC80112AED2A600A7D2A3 /* AC3DTexture.m */,
+ 3A2BC80512AED2D300A7D2A3 /* OpenGL_Internal.h */,
+ 080E96DDFE201D6D7F000001 /* Classes */,
+ 29B97315FDCFA39411CA2CEA /* Other Sources */,
+ 29B97317FDCFA39411CA2CEA /* Resources */,
+ 29B97323FDCFA39411CA2CEA /* Frameworks */,
+ 19C28FACFE9D520D11CA2CBB /* Products */,
+ 3AFC85E40EFD8C6600055062 /* CoreGraphics.framework */,
+ );
+ name = CustomTemplate;
+ sourceTree = "<group>";
+ };
+ 29B97315FDCFA39411CA2CEA /* Other Sources */ = {
+ isa = PBXGroup;
+ children = (
+ 32CA4F630368D1EE00C91783 /* AC3D_Demo_Prefix.pch */,
+ 29B97316FDCFA39411CA2CEA /* main.m */,
+ );
+ name = "Other Sources";
+ sourceTree = "<group>";
+ };
+ 29B97317FDCFA39411CA2CEA /* Resources */ = {
+ isa = PBXGroup;
+ children = (
+ 28AD733E0D9D9553002E5188 /* MainWindow.xib */,
+ 8D1107310486CEB800E47090 /* Info.plist */,
+ );
+ name = Resources;
+ sourceTree = "<group>";
+ };
+ 29B97323FDCFA39411CA2CEA /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 28FD15070DC6FC5B0079059D /* QuartzCore.framework */,
+ 28FD14FF0DC6FC520079059D /* OpenGLES.framework */,
+ 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
+ 1D30AB110D05D00D00671497 /* Foundation.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 1D6058900D05DD3D006BFB54 /* AC3D Demo */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "AC3D Demo" */;
+ buildPhases = (
+ 1D60588D0D05DD3D006BFB54 /* Resources */,
+ 1D60588E0D05DD3D006BFB54 /* Sources */,
+ 1D60588F0D05DD3D006BFB54 /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = "AC3D Demo";
+ productName = "AC3D Demo";
+ productReference = 1D6058910D05DD3D006BFB54 /* AC3DDemo.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 29B97313FDCFA39411CA2CEA /* Project object */ = {
+ isa = PBXProject;
+ buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "AC3D Demo" */;
+ compatibilityVersion = "Xcode 3.1";
+ developmentRegion = English;
+ hasScannedForEncodings = 1;
+ knownRegions = (
+ English,
+ Japanese,
+ French,
+ German,
+ );
+ mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 1D6058900D05DD3D006BFB54 /* AC3D Demo */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 1D60588D0D05DD3D006BFB54 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */,
+ 3A0B47B20EFD8CFC001B3883 /* thumbsup.ac in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 1D60588E0D05DD3D006BFB54 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 1D60589B0D05DD56006BFB54 /* main.m in Sources */,
+ 1D3623260D0F684500981E51 /* AC3D_DemoAppDelegate.m in Sources */,
+ 28FD14FE0DC6FC130079059D /* EAGLView.m in Sources */,
+ 3A2BC7FB12AED24C00A7D2A3 /* ac3d_reader.m in Sources */,
+ 3A2BC80212AED2A600A7D2A3 /* AC3DTexture.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin XCBuildConfiguration section */
+ 1D6058940D05DD3E006BFB54 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = NO;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = AC3D_Demo_Prefix.pch;
+ INFOPLIST_FILE = Info.plist;
+ LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ "\"$(SRCROOT)\"",
+ "\"$(SRCROOT)/..\"",
+ );
+ PRODUCT_NAME = AC3DDemo;
+ };
+ name = Debug;
+ };
+ 1D6058950D05DD3E006BFB54 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = YES;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = AC3D_Demo_Prefix.pch;
+ INFOPLIST_FILE = Info.plist;
+ LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ "\"$(SRCROOT)\"",
+ "\"$(SRCROOT)/..\"",
+ );
+ PRODUCT_NAME = AC3DDemo;
+ };
+ name = Release;
+ };
+ C01FCF4F08A954540054247B /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ GCC_C_LANGUAGE_STANDARD = c99;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ PREBINDING = NO;
+ SDKROOT = iphoneos;
+ };
+ name = Debug;
+ };
+ C01FCF5008A954540054247B /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ GCC_C_LANGUAGE_STANDARD = c99;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ PREBINDING = NO;
+ SDKROOT = iphoneos;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "AC3D Demo" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 1D6058940D05DD3E006BFB54 /* Debug */,
+ 1D6058950D05DD3E006BFB54 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ C01FCF4E08A954540054247B /* Build configuration list for PBXProject "AC3D Demo" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ C01FCF4F08A954540054247B /* Debug */,
+ C01FCF5008A954540054247B /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
+}
@@ -0,0 +1,8 @@
+//
+// Prefix header for all source files of the 'AC3D Demo' target in the 'AC3D Demo' project
+//
+
+#ifdef __OBJC__
+#import <Foundation/Foundation.h>
+#import <UIKit/UIKit.h>
+#endif
@@ -0,0 +1,19 @@
+//
+// AC3D_DemoAppDelegate.h
+// AC3D Demo
+//
+
+#import <UIKit/UIKit.h>
+
+@class EAGLView;
+
+@interface AC3D_DemoAppDelegate : NSObject <UIApplicationDelegate> {
+ UIWindow *window;
+ EAGLView *glView;
+}
+
+@property (nonatomic, retain) IBOutlet UIWindow *window;
+@property (nonatomic, retain) IBOutlet EAGLView *glView;
+
+@end
+
@@ -0,0 +1,37 @@
+//
+// AC3D_DemoAppDelegate.m
+// AC3D Demo
+//
+
+#import "AC3D_DemoAppDelegate.h"
+#import "EAGLView.h"
+
+@implementation AC3D_DemoAppDelegate
+
+@synthesize window;
+@synthesize glView;
+
+- (void)applicationDidFinishLaunching:(UIApplication *)application {
+
+ glView.animationInterval = 1.0 / 60.0;
+ [glView startAnimation];
+}
+
+
+- (void)applicationWillResignActive:(UIApplication *)application {
+ glView.animationInterval = 1.0 / 5.0;
+}
+
+
+- (void)applicationDidBecomeActive:(UIApplication *)application {
+ glView.animationInterval = 1.0 / 60.0;
+}
+
+
+- (void)dealloc {
+ [window release];
+ [glView release];
+ [super dealloc];
+}
+
+@end
Oops, something went wrong.

0 comments on commit 2f808f6

Please sign in to comment.