sgl

changeset 37:b3374e30361c

xcode project for uikit version, untested
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 27 Jun 2012 05:15:50 +0300
parents af9d2e895594
children a7b96de14be8
files .hgignore sgl.xcodeproj/project.pbxproj sgl.xcodeproj/project.xcworkspace/contents.xcworkspacedata sgl.xcodeproj/project.xcworkspace/xcuserdata/nuclear.xcuserdatad/UserInterfaceState.xcuserstate sgl.xcodeproj/project.xcworkspace/xcuserdata/nuclear.xcuserdatad/WorkspaceSettings.xcsettings sgl.xcodeproj/xcuserdata/nuclear.xcuserdatad/xcschemes/sgl.xcscheme sgl.xcodeproj/xcuserdata/nuclear.xcuserdatad/xcschemes/xcschememanagement.plist src/ios_init.h src/ios_init.m src/wsys_ios.m
diffstat 10 files changed, 439 insertions(+), 17 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/.hgignore	Wed Jun 27 05:15:50 2012 +0300
     1.3 @@ -0,0 +1,9 @@
     1.4 +\.swp$
     1.5 +\.o$
     1.6 +\.d$
     1.7 +config\.h$
     1.8 +config\.log$
     1.9 +modules\.c$
    1.10 +\.a$
    1.11 +\.so$
    1.12 +\.dylib$
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/sgl.xcodeproj/project.pbxproj	Wed Jun 27 05:15:50 2012 +0300
     2.3 @@ -0,0 +1,268 @@
     2.4 +// !$*UTF8*$!
     2.5 +{
     2.6 +	archiveVersion = 1;
     2.7 +	classes = {
     2.8 +	};
     2.9 +	objectVersion = 46;
    2.10 +	objects = {
    2.11 +
    2.12 +/* Begin PBXBuildFile section */
    2.13 +		06C7522B159AA36B006C47C6 /* ios_init.h in Headers */ = {isa = PBXBuildFile; fileRef = 06C75229159AA36A006C47C6 /* ios_init.h */; };
    2.14 +		06C7522C159AA36B006C47C6 /* ios_init.m in Sources */ = {isa = PBXBuildFile; fileRef = 06C7522A159AA36A006C47C6 /* ios_init.m */; };
    2.15 +		06F9D62514F7332500246CD7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06F9D62414F7332500246CD7 /* Foundation.framework */; };
    2.16 +		06F9D63514F7453B00246CD7 /* sgl.h in Headers */ = {isa = PBXBuildFile; fileRef = 06F9D63414F7453B00246CD7 /* sgl.h */; };
    2.17 +		06F9D65714F7456100246CD7 /* cb.c in Sources */ = {isa = PBXBuildFile; fileRef = 06F9D63714F7456100246CD7 /* cb.c */; };
    2.18 +		06F9D65A14F7456100246CD7 /* config.h in Headers */ = {isa = PBXBuildFile; fileRef = 06F9D63A14F7456100246CD7 /* config.h */; };
    2.19 +		06F9D65B14F7456100246CD7 /* log.c in Sources */ = {isa = PBXBuildFile; fileRef = 06F9D63B14F7456100246CD7 /* log.c */; };
    2.20 +		06F9D65D14F7456100246CD7 /* log.h in Headers */ = {isa = PBXBuildFile; fileRef = 06F9D63D14F7456100246CD7 /* log.h */; };
    2.21 +		06F9D66214F7456100246CD7 /* sgl.c in Sources */ = {isa = PBXBuildFile; fileRef = 06F9D64214F7456100246CD7 /* sgl.c */; };
    2.22 +		06F9D66514F7456100246CD7 /* wsys.c in Sources */ = {isa = PBXBuildFile; fileRef = 06F9D64514F7456100246CD7 /* wsys.c */; };
    2.23 +		06F9D66714F7456100246CD7 /* wsys.h in Headers */ = {isa = PBXBuildFile; fileRef = 06F9D64714F7456100246CD7 /* wsys.h */; };
    2.24 +		06F9D67814F88B1300246CD7 /* wsys_ios.m in Sources */ = {isa = PBXBuildFile; fileRef = 06F9D67714F88B1300246CD7 /* wsys_ios.m */; };
    2.25 +/* End PBXBuildFile section */
    2.26 +
    2.27 +/* Begin PBXFileReference section */
    2.28 +		06C75229159AA36A006C47C6 /* ios_init.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ios_init.h; sourceTree = "<group>"; };
    2.29 +		06C7522A159AA36A006C47C6 /* ios_init.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ios_init.m; sourceTree = "<group>"; };
    2.30 +		06F9D62114F7332500246CD7 /* libsgl.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libsgl.a; sourceTree = BUILT_PRODUCTS_DIR; };
    2.31 +		06F9D62414F7332500246CD7 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
    2.32 +		06F9D63414F7453B00246CD7 /* sgl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sgl.h; sourceTree = "<group>"; };
    2.33 +		06F9D63714F7456100246CD7 /* cb.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = cb.c; sourceTree = "<group>"; };
    2.34 +		06F9D63A14F7456100246CD7 /* config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = config.h; sourceTree = "<group>"; };
    2.35 +		06F9D63B14F7456100246CD7 /* log.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = log.c; sourceTree = "<group>"; };
    2.36 +		06F9D63D14F7456100246CD7 /* log.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = log.h; sourceTree = "<group>"; };
    2.37 +		06F9D64214F7456100246CD7 /* sgl.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sgl.c; sourceTree = "<group>"; };
    2.38 +		06F9D64514F7456100246CD7 /* wsys.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = wsys.c; sourceTree = "<group>"; };
    2.39 +		06F9D64714F7456100246CD7 /* wsys.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = wsys.h; sourceTree = "<group>"; };
    2.40 +		06F9D67714F88B1300246CD7 /* wsys_ios.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = wsys_ios.m; sourceTree = "<group>"; };
    2.41 +/* End PBXFileReference section */
    2.42 +
    2.43 +/* Begin PBXFrameworksBuildPhase section */
    2.44 +		06F9D61E14F7332500246CD7 /* Frameworks */ = {
    2.45 +			isa = PBXFrameworksBuildPhase;
    2.46 +			buildActionMask = 2147483647;
    2.47 +			files = (
    2.48 +				06F9D62514F7332500246CD7 /* Foundation.framework in Frameworks */,
    2.49 +			);
    2.50 +			runOnlyForDeploymentPostprocessing = 0;
    2.51 +		};
    2.52 +/* End PBXFrameworksBuildPhase section */
    2.53 +
    2.54 +/* Begin PBXGroup section */
    2.55 +		06F9D61614F7332500246CD7 = {
    2.56 +			isa = PBXGroup;
    2.57 +			children = (
    2.58 +				06F9D63614F7456100246CD7 /* src */,
    2.59 +				06F9D63314F7453B00246CD7 /* include */,
    2.60 +				06F9D62314F7332500246CD7 /* Frameworks */,
    2.61 +				06F9D62214F7332500246CD7 /* Products */,
    2.62 +			);
    2.63 +			sourceTree = "<group>";
    2.64 +		};
    2.65 +		06F9D62214F7332500246CD7 /* Products */ = {
    2.66 +			isa = PBXGroup;
    2.67 +			children = (
    2.68 +				06F9D62114F7332500246CD7 /* libsgl.a */,
    2.69 +			);
    2.70 +			name = Products;
    2.71 +			sourceTree = "<group>";
    2.72 +		};
    2.73 +		06F9D62314F7332500246CD7 /* Frameworks */ = {
    2.74 +			isa = PBXGroup;
    2.75 +			children = (
    2.76 +				06F9D62414F7332500246CD7 /* Foundation.framework */,
    2.77 +			);
    2.78 +			name = Frameworks;
    2.79 +			sourceTree = "<group>";
    2.80 +		};
    2.81 +		06F9D63314F7453B00246CD7 /* include */ = {
    2.82 +			isa = PBXGroup;
    2.83 +			children = (
    2.84 +				06F9D63414F7453B00246CD7 /* sgl.h */,
    2.85 +			);
    2.86 +			path = include;
    2.87 +			sourceTree = "<group>";
    2.88 +		};
    2.89 +		06F9D63614F7456100246CD7 /* src */ = {
    2.90 +			isa = PBXGroup;
    2.91 +			children = (
    2.92 +				06C75229159AA36A006C47C6 /* ios_init.h */,
    2.93 +				06C7522A159AA36A006C47C6 /* ios_init.m */,
    2.94 +				06F9D67714F88B1300246CD7 /* wsys_ios.m */,
    2.95 +				06F9D63714F7456100246CD7 /* cb.c */,
    2.96 +				06F9D63A14F7456100246CD7 /* config.h */,
    2.97 +				06F9D63B14F7456100246CD7 /* log.c */,
    2.98 +				06F9D63D14F7456100246CD7 /* log.h */,
    2.99 +				06F9D64214F7456100246CD7 /* sgl.c */,
   2.100 +				06F9D64514F7456100246CD7 /* wsys.c */,
   2.101 +				06F9D64714F7456100246CD7 /* wsys.h */,
   2.102 +			);
   2.103 +			path = src;
   2.104 +			sourceTree = "<group>";
   2.105 +		};
   2.106 +/* End PBXGroup section */
   2.107 +
   2.108 +/* Begin PBXHeadersBuildPhase section */
   2.109 +		06F9D61F14F7332500246CD7 /* Headers */ = {
   2.110 +			isa = PBXHeadersBuildPhase;
   2.111 +			buildActionMask = 2147483647;
   2.112 +			files = (
   2.113 +				06F9D63514F7453B00246CD7 /* sgl.h in Headers */,
   2.114 +				06F9D65A14F7456100246CD7 /* config.h in Headers */,
   2.115 +				06F9D65D14F7456100246CD7 /* log.h in Headers */,
   2.116 +				06F9D66714F7456100246CD7 /* wsys.h in Headers */,
   2.117 +				06C7522B159AA36B006C47C6 /* ios_init.h in Headers */,
   2.118 +			);
   2.119 +			runOnlyForDeploymentPostprocessing = 0;
   2.120 +		};
   2.121 +/* End PBXHeadersBuildPhase section */
   2.122 +
   2.123 +/* Begin PBXNativeTarget section */
   2.124 +		06F9D62014F7332500246CD7 /* sgl */ = {
   2.125 +			isa = PBXNativeTarget;
   2.126 +			buildConfigurationList = 06F9D62E14F7332500246CD7 /* Build configuration list for PBXNativeTarget "sgl" */;
   2.127 +			buildPhases = (
   2.128 +				06F9D61D14F7332500246CD7 /* Sources */,
   2.129 +				06F9D61E14F7332500246CD7 /* Frameworks */,
   2.130 +				06F9D61F14F7332500246CD7 /* Headers */,
   2.131 +			);
   2.132 +			buildRules = (
   2.133 +			);
   2.134 +			dependencies = (
   2.135 +			);
   2.136 +			name = sgl;
   2.137 +			productName = sgl;
   2.138 +			productReference = 06F9D62114F7332500246CD7 /* libsgl.a */;
   2.139 +			productType = "com.apple.product-type.library.static";
   2.140 +		};
   2.141 +/* End PBXNativeTarget section */
   2.142 +
   2.143 +/* Begin PBXProject section */
   2.144 +		06F9D61814F7332500246CD7 /* Project object */ = {
   2.145 +			isa = PBXProject;
   2.146 +			attributes = {
   2.147 +				LastUpgradeCheck = 0430;
   2.148 +			};
   2.149 +			buildConfigurationList = 06F9D61B14F7332500246CD7 /* Build configuration list for PBXProject "sgl" */;
   2.150 +			compatibilityVersion = "Xcode 3.2";
   2.151 +			developmentRegion = English;
   2.152 +			hasScannedForEncodings = 0;
   2.153 +			knownRegions = (
   2.154 +				en,
   2.155 +			);
   2.156 +			mainGroup = 06F9D61614F7332500246CD7;
   2.157 +			productRefGroup = 06F9D62214F7332500246CD7 /* Products */;
   2.158 +			projectDirPath = "";
   2.159 +			projectRoot = "";
   2.160 +			targets = (
   2.161 +				06F9D62014F7332500246CD7 /* sgl */,
   2.162 +			);
   2.163 +		};
   2.164 +/* End PBXProject section */
   2.165 +
   2.166 +/* Begin PBXSourcesBuildPhase section */
   2.167 +		06F9D61D14F7332500246CD7 /* Sources */ = {
   2.168 +			isa = PBXSourcesBuildPhase;
   2.169 +			buildActionMask = 2147483647;
   2.170 +			files = (
   2.171 +				06F9D65714F7456100246CD7 /* cb.c in Sources */,
   2.172 +				06F9D65B14F7456100246CD7 /* log.c in Sources */,
   2.173 +				06F9D66214F7456100246CD7 /* sgl.c in Sources */,
   2.174 +				06F9D66514F7456100246CD7 /* wsys.c in Sources */,
   2.175 +				06F9D67814F88B1300246CD7 /* wsys_ios.m in Sources */,
   2.176 +				06C7522C159AA36B006C47C6 /* ios_init.m in Sources */,
   2.177 +			);
   2.178 +			runOnlyForDeploymentPostprocessing = 0;
   2.179 +		};
   2.180 +/* End PBXSourcesBuildPhase section */
   2.181 +
   2.182 +/* Begin XCBuildConfiguration section */
   2.183 +		06F9D62C14F7332500246CD7 /* Debug */ = {
   2.184 +			isa = XCBuildConfiguration;
   2.185 +			buildSettings = {
   2.186 +				ALWAYS_SEARCH_USER_PATHS = NO;
   2.187 +				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
   2.188 +				COPY_PHASE_STRIP = NO;
   2.189 +				GCC_C_LANGUAGE_STANDARD = gnu99;
   2.190 +				GCC_DYNAMIC_NO_PIC = NO;
   2.191 +				GCC_OPTIMIZATION_LEVEL = 0;
   2.192 +				GCC_PREPROCESSOR_DEFINITIONS = (
   2.193 +					"DEBUG=1",
   2.194 +					"$(inherited)",
   2.195 +				);
   2.196 +				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
   2.197 +				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
   2.198 +				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
   2.199 +				GCC_WARN_ABOUT_RETURN_TYPE = YES;
   2.200 +				GCC_WARN_UNUSED_VARIABLE = YES;
   2.201 +				IPHONEOS_DEPLOYMENT_TARGET = 5.0;
   2.202 +				SDKROOT = iphoneos;
   2.203 +			};
   2.204 +			name = Debug;
   2.205 +		};
   2.206 +		06F9D62D14F7332500246CD7 /* Release */ = {
   2.207 +			isa = XCBuildConfiguration;
   2.208 +			buildSettings = {
   2.209 +				ALWAYS_SEARCH_USER_PATHS = NO;
   2.210 +				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
   2.211 +				COPY_PHASE_STRIP = YES;
   2.212 +				GCC_C_LANGUAGE_STANDARD = gnu99;
   2.213 +				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
   2.214 +				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
   2.215 +				GCC_WARN_ABOUT_RETURN_TYPE = YES;
   2.216 +				GCC_WARN_UNUSED_VARIABLE = YES;
   2.217 +				IPHONEOS_DEPLOYMENT_TARGET = 5.0;
   2.218 +				SDKROOT = iphoneos;
   2.219 +				VALIDATE_PRODUCT = YES;
   2.220 +			};
   2.221 +			name = Release;
   2.222 +		};
   2.223 +		06F9D62F14F7332500246CD7 /* Debug */ = {
   2.224 +			isa = XCBuildConfiguration;
   2.225 +			buildSettings = {
   2.226 +				DSTROOT = /tmp/sgl.dst;
   2.227 +				GCC_PRECOMPILE_PREFIX_HEADER = NO;
   2.228 +				GCC_PREFIX_HEADER = "";
   2.229 +				OTHER_LDFLAGS = "-ObjC";
   2.230 +				PRODUCT_NAME = "$(TARGET_NAME)";
   2.231 +				SKIP_INSTALL = YES;
   2.232 +			};
   2.233 +			name = Debug;
   2.234 +		};
   2.235 +		06F9D63014F7332500246CD7 /* Release */ = {
   2.236 +			isa = XCBuildConfiguration;
   2.237 +			buildSettings = {
   2.238 +				DSTROOT = /tmp/sgl.dst;
   2.239 +				GCC_PRECOMPILE_PREFIX_HEADER = NO;
   2.240 +				GCC_PREFIX_HEADER = "";
   2.241 +				OTHER_LDFLAGS = "-ObjC";
   2.242 +				PRODUCT_NAME = "$(TARGET_NAME)";
   2.243 +				SKIP_INSTALL = YES;
   2.244 +			};
   2.245 +			name = Release;
   2.246 +		};
   2.247 +/* End XCBuildConfiguration section */
   2.248 +
   2.249 +/* Begin XCConfigurationList section */
   2.250 +		06F9D61B14F7332500246CD7 /* Build configuration list for PBXProject "sgl" */ = {
   2.251 +			isa = XCConfigurationList;
   2.252 +			buildConfigurations = (
   2.253 +				06F9D62C14F7332500246CD7 /* Debug */,
   2.254 +				06F9D62D14F7332500246CD7 /* Release */,
   2.255 +			);
   2.256 +			defaultConfigurationIsVisible = 0;
   2.257 +			defaultConfigurationName = Release;
   2.258 +		};
   2.259 +		06F9D62E14F7332500246CD7 /* Build configuration list for PBXNativeTarget "sgl" */ = {
   2.260 +			isa = XCConfigurationList;
   2.261 +			buildConfigurations = (
   2.262 +				06F9D62F14F7332500246CD7 /* Debug */,
   2.263 +				06F9D63014F7332500246CD7 /* Release */,
   2.264 +			);
   2.265 +			defaultConfigurationIsVisible = 0;
   2.266 +			defaultConfigurationName = Release;
   2.267 +		};
   2.268 +/* End XCConfigurationList section */
   2.269 +	};
   2.270 +	rootObject = 06F9D61814F7332500246CD7 /* Project object */;
   2.271 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/sgl.xcodeproj/project.xcworkspace/contents.xcworkspacedata	Wed Jun 27 05:15:50 2012 +0300
     3.3 @@ -0,0 +1,7 @@
     3.4 +<?xml version="1.0" encoding="UTF-8"?>
     3.5 +<Workspace
     3.6 +   version = "1.0">
     3.7 +   <FileRef
     3.8 +      location = "self:sgl.xcodeproj">
     3.9 +   </FileRef>
    3.10 +</Workspace>
     4.1 Binary file sgl.xcodeproj/project.xcworkspace/xcuserdata/nuclear.xcuserdatad/UserInterfaceState.xcuserstate has changed
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/sgl.xcodeproj/project.xcworkspace/xcuserdata/nuclear.xcuserdatad/WorkspaceSettings.xcsettings	Wed Jun 27 05:15:50 2012 +0300
     5.3 @@ -0,0 +1,20 @@
     5.4 +<?xml version="1.0" encoding="UTF-8"?>
     5.5 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
     5.6 +<plist version="1.0">
     5.7 +<dict>
     5.8 +	<key>IDEWorkspaceUserSettings_BuildLocationStyle</key>
     5.9 +	<integer>0</integer>
    5.10 +	<key>IDEWorkspaceUserSettings_BuildSubfolderNameStyle</key>
    5.11 +	<integer>0</integer>
    5.12 +	<key>IDEWorkspaceUserSettings_DerivedDataLocationStyle</key>
    5.13 +	<integer>0</integer>
    5.14 +	<key>IDEWorkspaceUserSettings_IssueFilterStyle</key>
    5.15 +	<integer>0</integer>
    5.16 +	<key>IDEWorkspaceUserSettings_LiveSourceIssuesEnabled</key>
    5.17 +	<true/>
    5.18 +	<key>IDEWorkspaceUserSettings_SnapshotAutomaticallyBeforeSignificantChanges</key>
    5.19 +	<false/>
    5.20 +	<key>IDEWorkspaceUserSettings_SnapshotLocationStyle</key>
    5.21 +	<integer>0</integer>
    5.22 +</dict>
    5.23 +</plist>
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/sgl.xcodeproj/xcuserdata/nuclear.xcuserdatad/xcschemes/sgl.xcscheme	Wed Jun 27 05:15:50 2012 +0300
     6.3 @@ -0,0 +1,59 @@
     6.4 +<?xml version="1.0" encoding="UTF-8"?>
     6.5 +<Scheme
     6.6 +   LastUpgradeVersion = "0430"
     6.7 +   version = "1.3">
     6.8 +   <BuildAction
     6.9 +      parallelizeBuildables = "YES"
    6.10 +      buildImplicitDependencies = "YES">
    6.11 +      <BuildActionEntries>
    6.12 +         <BuildActionEntry
    6.13 +            buildForTesting = "YES"
    6.14 +            buildForRunning = "YES"
    6.15 +            buildForProfiling = "YES"
    6.16 +            buildForArchiving = "YES"
    6.17 +            buildForAnalyzing = "YES">
    6.18 +            <BuildableReference
    6.19 +               BuildableIdentifier = "primary"
    6.20 +               BlueprintIdentifier = "06F9D62014F7332500246CD7"
    6.21 +               BuildableName = "libsgl.a"
    6.22 +               BlueprintName = "sgl"
    6.23 +               ReferencedContainer = "container:sgl.xcodeproj">
    6.24 +            </BuildableReference>
    6.25 +         </BuildActionEntry>
    6.26 +      </BuildActionEntries>
    6.27 +   </BuildAction>
    6.28 +   <TestAction
    6.29 +      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
    6.30 +      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
    6.31 +      shouldUseLaunchSchemeArgsEnv = "YES"
    6.32 +      buildConfiguration = "Debug">
    6.33 +      <Testables>
    6.34 +      </Testables>
    6.35 +   </TestAction>
    6.36 +   <LaunchAction
    6.37 +      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
    6.38 +      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
    6.39 +      launchStyle = "0"
    6.40 +      useCustomWorkingDirectory = "NO"
    6.41 +      buildConfiguration = "Debug"
    6.42 +      ignoresPersistentStateOnLaunch = "NO"
    6.43 +      debugDocumentVersioning = "YES"
    6.44 +      allowLocationSimulation = "YES">
    6.45 +      <AdditionalOptions>
    6.46 +      </AdditionalOptions>
    6.47 +   </LaunchAction>
    6.48 +   <ProfileAction
    6.49 +      shouldUseLaunchSchemeArgsEnv = "YES"
    6.50 +      savedToolIdentifier = ""
    6.51 +      useCustomWorkingDirectory = "NO"
    6.52 +      buildConfiguration = "Release"
    6.53 +      debugDocumentVersioning = "YES">
    6.54 +   </ProfileAction>
    6.55 +   <AnalyzeAction
    6.56 +      buildConfiguration = "Debug">
    6.57 +   </AnalyzeAction>
    6.58 +   <ArchiveAction
    6.59 +      buildConfiguration = "Release"
    6.60 +      revealArchiveInOrganizer = "YES">
    6.61 +   </ArchiveAction>
    6.62 +</Scheme>
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/sgl.xcodeproj/xcuserdata/nuclear.xcuserdatad/xcschemes/xcschememanagement.plist	Wed Jun 27 05:15:50 2012 +0300
     7.3 @@ -0,0 +1,22 @@
     7.4 +<?xml version="1.0" encoding="UTF-8"?>
     7.5 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
     7.6 +<plist version="1.0">
     7.7 +<dict>
     7.8 +	<key>SchemeUserState</key>
     7.9 +	<dict>
    7.10 +		<key>sgl.xcscheme</key>
    7.11 +		<dict>
    7.12 +			<key>orderHint</key>
    7.13 +			<integer>0</integer>
    7.14 +		</dict>
    7.15 +	</dict>
    7.16 +	<key>SuppressBuildableAutocreation</key>
    7.17 +	<dict>
    7.18 +		<key>06F9D62014F7332500246CD7</key>
    7.19 +		<dict>
    7.20 +			<key>primary</key>
    7.21 +			<true/>
    7.22 +		</dict>
    7.23 +	</dict>
    7.24 +</dict>
    7.25 +</plist>
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/src/ios_init.h	Wed Jun 27 05:15:50 2012 +0300
     8.3 @@ -0,0 +1,8 @@
     8.4 +#import <Foundation/Foundation.h>
     8.5 +
     8.6 +@interface sgl : NSObject
     8.7 +// XXX no need for init yet...
     8.8 +@end
     8.9 +
    8.10 +
    8.11 +void sgl_modules_init(void);
    8.12 \ No newline at end of file
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/src/ios_init.m	Wed Jun 27 05:15:50 2012 +0300
     9.3 @@ -0,0 +1,22 @@
     9.4 +#import "ios_init.h"
     9.5 +
     9.6 +@implementation sgl
     9.7 +
     9.8 +- (id)init
     9.9 +{
    9.10 +    self = [super init];
    9.11 +    if(self) {
    9.12 +        // Initialization code here.
    9.13 +    }
    9.14 +    
    9.15 +    return self;
    9.16 +}
    9.17 +
    9.18 +@end
    9.19 +
    9.20 +void sgl_register_uikit(void);
    9.21 +
    9.22 +void sgl_modules_init(void)
    9.23 +{
    9.24 +	sgl_register_uikit();
    9.25 +}
    9.26 \ No newline at end of file
    10.1 --- a/src/wsys_ios.m	Fri Feb 24 08:49:29 2012 +0200
    10.2 +++ b/src/wsys_ios.m	Wed Jun 27 05:15:50 2012 +0300
    10.3 @@ -1,9 +1,10 @@
    10.4  #include <assert.h>
    10.5  #import <UIKit/UIKit.h>
    10.6 +#import <QuartzCore/QuartzCore.h>
    10.7  #include <OpenGLES/ES2/gl.h>
    10.8  #include <OpenGLES/ES2/glext.h>
    10.9  
   10.10 -@interface GLView : UIView {
   10.11 +@interface SGLView : UIView {
   10.12  @private
   10.13  	BOOL active;
   10.14  	BOOL use_disp_link;
   10.15 @@ -14,22 +15,28 @@
   10.16  	unsigned int fbo, rbuf_color, rbuf_depth;
   10.17  }
   10.18  
   10.19 +@property (readonly, nonatomic, getter=isAnimating) BOOL active;
   10.20 +@property (nonatomic) NSInteger frame_interval;
   10.21 +
   10.22  -(void)start_anim;
   10.23  -(void)stop_anim;
   10.24 --(void)draw: (id)sender;
   10.25 +-(void)drawView: (id)sender;
   10.26  @end
   10.27  
   10.28  @interface SGLDelegate : NSObject <UIApplicationDelegate> {
   10.29  	UIWindow *win;
   10.30 -	GLView *view;
   10.31 +	SGLView *view;
   10.32  }
   10.33 +
   10.34 +@property (nonatomic, retain) IBOutlet UIWindow *win;
   10.35 +@property (nonatomic, retain) IBOutlet SGLView *view;
   10.36  @end
   10.37  
   10.38  
   10.39  
   10.40 -@implementation GLView
   10.41 +@implementation SGLView
   10.42  
   10.43 -@synthesize animating;
   10.44 +@synthesize active;
   10.45  @dynamic frame_interval;
   10.46  
   10.47  +(Class)layerClass
   10.48 @@ -72,7 +79,7 @@
   10.49  		glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, rbuf_depth);
   10.50  		assert(glGetError() == GL_NO_ERROR);
   10.51  
   10.52 -		animating = FALSE;
   10.53 +		active = FALSE;
   10.54  		use_disp_link = FALSE;
   10.55  		frame_interval = 1;
   10.56  		disp_link = nil;
   10.57 @@ -82,7 +89,7 @@
   10.58  		// class is used as fallback when it isn't available.
   10.59  		NSString *req_ver = @"3.1";
   10.60  		NSString *cur_ver = [[UIDevice currentDevice] systemVersion];
   10.61 -		if([curr_ver compare: req_ver options: NSNumericSearch] != NSOrderedAscending) {
   10.62 +		if([cur_ver compare: req_ver options: NSNumericSearch] != NSOrderedAscending) {
   10.63  			use_disp_link = TRUE;
   10.64  		}
   10.65  
   10.66 @@ -122,13 +129,13 @@
   10.67  
   10.68  		if(active)
   10.69  		{
   10.70 -			[self stopAnimation];
   10.71 -			[self startAnimation];
   10.72 +			[self stop_anim];
   10.73 +			[self start_anim];
   10.74  		}
   10.75  	}
   10.76  }
   10.77  
   10.78 --(void)startAnimation
   10.79 +-(void)start_anim
   10.80  {
   10.81  	if(!active) {
   10.82  		if(use_disp_link) {
   10.83 @@ -138,8 +145,8 @@
   10.84  
   10.85  			disp_link = [NSClassFromString(@"CADisplayLink") displayLinkWithTarget: self
   10.86  				selector: @selector(drawView:)];
   10.87 -			[displayLink setFrameInterval: frame_interval];
   10.88 -			[displayLink addToRunLoop: [NSRunLoop currentRunLoop] forMode: NSDefaultRunLoopMode];
   10.89 +			[disp_link setFrameInterval: frame_interval];
   10.90 +			[disp_link addToRunLoop: [NSRunLoop currentRunLoop] forMode: NSDefaultRunLoopMode];
   10.91  		} else {
   10.92  			anim_timer = [NSTimer scheduledTimerWithTimeInterval: (NSTimeInterval)((1.0 / 60.0) * frame_interval)
   10.93  				target: self selector: @selector(drawView:) userInfo: nil
   10.94 @@ -150,7 +157,7 @@
   10.95  	}
   10.96  }
   10.97  
   10.98 -- (void)stopAnimation
   10.99 +- (void)stop_anim
  10.100  {
  10.101  	if(active) {
  10.102  		if(use_disp_link) {
  10.103 @@ -179,23 +186,23 @@
  10.104  
  10.105  -(BOOL)application: (UIApplication*)app didFinishLaunchingWithOptions: (NSDictionary*)opt
  10.106  {
  10.107 -	[view startAnimation];
  10.108 +	[view start_anim];
  10.109  	return YES;
  10.110  }
  10.111  
  10.112  -(void)applicationWillResignActive: (UIApplication*)app
  10.113  {
  10.114 -	[view stopAnimation];
  10.115 +	[view stop_anim];
  10.116  }
  10.117  
  10.118  -(void)applicationDidBecomeActive: (UIApplication*)app
  10.119  {
  10.120 -	[view startAnimation];
  10.121 +	[view start_anim];
  10.122  }
  10.123  
  10.124  -(void)applicationWillTerminate: (UIApplication*)app
  10.125  {
  10.126 -	[view stopAnimation];
  10.127 +	[view stop_anim];
  10.128  }
  10.129  
  10.130  -(void)dealloc