istereo

changeset 3:2c5620f0670c

trying to make this piece of crap work
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 07 Sep 2011 05:33:19 +0300
parents bb68fac22579
children 14bbdfcb9030
files istereo.xcodeproj/project.pbxproj src/istereo.c src/main.m src/opengl.h src/sanegl.c
diffstat 5 files changed, 327 insertions(+), 19 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/istereo.xcodeproj/project.pbxproj	Wed Sep 07 05:33:19 2011 +0300
     1.3 @@ -0,0 +1,312 @@
     1.4 +// !$*UTF8*$!
     1.5 +{
     1.6 +	archiveVersion = 1;
     1.7 +	classes = {
     1.8 +	};
     1.9 +	objectVersion = 45;
    1.10 +	objects = {
    1.11 +
    1.12 +/* Begin PBXBuildFile section */
    1.13 +		062A12991416E9750070199C /* EAGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 062A12911416E9750070199C /* EAGLView.m */; };
    1.14 +		062A129A1416E9750070199C /* ES1Renderer.m in Sources */ = {isa = PBXBuildFile; fileRef = 062A12931416E9750070199C /* ES1Renderer.m */; };
    1.15 +		062A129B1416E9750070199C /* ES2Renderer.m in Sources */ = {isa = PBXBuildFile; fileRef = 062A12951416E9750070199C /* ES2Renderer.m */; };
    1.16 +		062A129C1416E9750070199C /* istereoAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 062A12981416E9750070199C /* istereoAppDelegate.m */; };
    1.17 +		062A12A51416E9920070199C /* istereo.c in Sources */ = {isa = PBXBuildFile; fileRef = 062A129D1416E9920070199C /* istereo.c */; };
    1.18 +		062A12A61416E9920070199C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 062A129F1416E9920070199C /* main.m */; };
    1.19 +		062A12A71416E9920070199C /* sanegl.c in Sources */ = {isa = PBXBuildFile; fileRef = 062A12A11416E9920070199C /* sanegl.c */; };
    1.20 +		062A12A81416E9920070199C /* sdr.c in Sources */ = {isa = PBXBuildFile; fileRef = 062A12A31416E9920070199C /* sdr.c */; };
    1.21 +		062A12AB1416E9A00070199C /* test.p.glsl in Resources */ = {isa = PBXBuildFile; fileRef = 062A12A91416E9A00070199C /* test.p.glsl */; };
    1.22 +		062A12AC1416E9A00070199C /* test.v.glsl in Resources */ = {isa = PBXBuildFile; fileRef = 062A12AA1416E9A00070199C /* test.v.glsl */; };
    1.23 +		1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
    1.24 +		1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
    1.25 +		28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; };
    1.26 +		28FD15000DC6FC520079059D /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28FD14FF0DC6FC520079059D /* OpenGLES.framework */; };
    1.27 +		28FD15080DC6FC5B0079059D /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28FD15070DC6FC5B0079059D /* QuartzCore.framework */; };
    1.28 +/* End PBXBuildFile section */
    1.29 +
    1.30 +/* Begin PBXFileReference section */
    1.31 +		062A12901416E9750070199C /* EAGLView.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = EAGLView.h; path = src/EAGLView.h; sourceTree = "<group>"; };
    1.32 +		062A12911416E9750070199C /* EAGLView.m */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.objc; name = EAGLView.m; path = src/EAGLView.m; sourceTree = "<group>"; };
    1.33 +		062A12921416E9750070199C /* ES1Renderer.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = ES1Renderer.h; path = src/ES1Renderer.h; sourceTree = "<group>"; };
    1.34 +		062A12931416E9750070199C /* ES1Renderer.m */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.objc; name = ES1Renderer.m; path = src/ES1Renderer.m; sourceTree = "<group>"; };
    1.35 +		062A12941416E9750070199C /* ES2Renderer.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = ES2Renderer.h; path = src/ES2Renderer.h; sourceTree = "<group>"; };
    1.36 +		062A12951416E9750070199C /* ES2Renderer.m */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.objc; name = ES2Renderer.m; path = src/ES2Renderer.m; sourceTree = "<group>"; };
    1.37 +		062A12961416E9750070199C /* ESRenderer.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = ESRenderer.h; path = src/ESRenderer.h; sourceTree = "<group>"; };
    1.38 +		062A12971416E9750070199C /* istereoAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = istereoAppDelegate.h; path = src/istereoAppDelegate.h; sourceTree = "<group>"; };
    1.39 +		062A12981416E9750070199C /* istereoAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.objc; name = istereoAppDelegate.m; path = src/istereoAppDelegate.m; sourceTree = "<group>"; };
    1.40 +		062A129D1416E9920070199C /* istereo.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; name = istereo.c; path = src/istereo.c; sourceTree = "<group>"; };
    1.41 +		062A129E1416E9920070199C /* istereo.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = istereo.h; path = src/istereo.h; sourceTree = "<group>"; };
    1.42 +		062A129F1416E9920070199C /* main.m */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.objc; name = main.m; path = src/main.m; sourceTree = "<group>"; };
    1.43 +		062A12A01416E9920070199C /* opengl.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = opengl.h; path = src/opengl.h; sourceTree = "<group>"; };
    1.44 +		062A12A11416E9920070199C /* sanegl.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; name = sanegl.c; path = src/sanegl.c; sourceTree = "<group>"; };
    1.45 +		062A12A21416E9920070199C /* sanegl.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = sanegl.h; path = src/sanegl.h; sourceTree = "<group>"; };
    1.46 +		062A12A31416E9920070199C /* sdr.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; name = sdr.c; path = src/sdr.c; sourceTree = "<group>"; };
    1.47 +		062A12A41416E9920070199C /* sdr.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = sdr.h; path = src/sdr.h; sourceTree = "<group>"; };
    1.48 +		062A12A91416E9A00070199C /* test.p.glsl */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = text; name = test.p.glsl; path = sdr/test.p.glsl; sourceTree = "<group>"; };
    1.49 +		062A12AA1416E9A00070199C /* test.v.glsl */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = text; name = test.v.glsl; path = sdr/test.v.glsl; sourceTree = "<group>"; };
    1.50 +		1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
    1.51 +		1D6058910D05DD3D006BFB54 /* istereo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = istereo.app; sourceTree = BUILT_PRODUCTS_DIR; };
    1.52 +		1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
    1.53 +		28AD733E0D9D9553002E5188 /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = "<group>"; };
    1.54 +		28FD14FF0DC6FC520079059D /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
    1.55 +		28FD15070DC6FC5B0079059D /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
    1.56 +		32CA4F630368D1EE00C91783 /* istereo_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = istereo_Prefix.pch; sourceTree = "<group>"; };
    1.57 +		8D1107310486CEB800E47090 /* istereo-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "istereo-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = "<group>"; };
    1.58 +/* End PBXFileReference section */
    1.59 +
    1.60 +/* Begin PBXFrameworksBuildPhase section */
    1.61 +		1D60588F0D05DD3D006BFB54 /* Frameworks */ = {
    1.62 +			isa = PBXFrameworksBuildPhase;
    1.63 +			buildActionMask = 2147483647;
    1.64 +			files = (
    1.65 +				1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
    1.66 +				1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
    1.67 +				28FD15000DC6FC520079059D /* OpenGLES.framework in Frameworks */,
    1.68 +				28FD15080DC6FC5B0079059D /* QuartzCore.framework in Frameworks */,
    1.69 +			);
    1.70 +			runOnlyForDeploymentPostprocessing = 0;
    1.71 +		};
    1.72 +/* End PBXFrameworksBuildPhase section */
    1.73 +
    1.74 +/* Begin PBXGroup section */
    1.75 +		062A128D1416E9400070199C /* src */ = {
    1.76 +			isa = PBXGroup;
    1.77 +			children = (
    1.78 +				062A129D1416E9920070199C /* istereo.c */,
    1.79 +				062A129E1416E9920070199C /* istereo.h */,
    1.80 +				062A12A01416E9920070199C /* opengl.h */,
    1.81 +				062A12A11416E9920070199C /* sanegl.c */,
    1.82 +				062A12A21416E9920070199C /* sanegl.h */,
    1.83 +				062A12A31416E9920070199C /* sdr.c */,
    1.84 +				062A12A41416E9920070199C /* sdr.h */,
    1.85 +				062A128F1416E94D0070199C /* gay */,
    1.86 +			);
    1.87 +			name = src;
    1.88 +			sourceTree = "<group>";
    1.89 +		};
    1.90 +		062A128E1416E9450070199C /* sdr */ = {
    1.91 +			isa = PBXGroup;
    1.92 +			children = (
    1.93 +				062A12A91416E9A00070199C /* test.p.glsl */,
    1.94 +				062A12AA1416E9A00070199C /* test.v.glsl */,
    1.95 +			);
    1.96 +			name = sdr;
    1.97 +			sourceTree = "<group>";
    1.98 +		};
    1.99 +		062A128F1416E94D0070199C /* gay */ = {
   1.100 +			isa = PBXGroup;
   1.101 +			children = (
   1.102 +				062A129F1416E9920070199C /* main.m */,
   1.103 +				062A12901416E9750070199C /* EAGLView.h */,
   1.104 +				062A12911416E9750070199C /* EAGLView.m */,
   1.105 +				062A12921416E9750070199C /* ES1Renderer.h */,
   1.106 +				062A12931416E9750070199C /* ES1Renderer.m */,
   1.107 +				062A12941416E9750070199C /* ES2Renderer.h */,
   1.108 +				062A12951416E9750070199C /* ES2Renderer.m */,
   1.109 +				062A12961416E9750070199C /* ESRenderer.h */,
   1.110 +				062A12971416E9750070199C /* istereoAppDelegate.h */,
   1.111 +				062A12981416E9750070199C /* istereoAppDelegate.m */,
   1.112 +			);
   1.113 +			name = gay;
   1.114 +			sourceTree = "<group>";
   1.115 +		};
   1.116 +		19C28FACFE9D520D11CA2CBB /* Products */ = {
   1.117 +			isa = PBXGroup;
   1.118 +			children = (
   1.119 +				1D6058910D05DD3D006BFB54 /* istereo.app */,
   1.120 +			);
   1.121 +			name = Products;
   1.122 +			sourceTree = "<group>";
   1.123 +		};
   1.124 +		29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
   1.125 +			isa = PBXGroup;
   1.126 +			children = (
   1.127 +				062A128E1416E9450070199C /* sdr */,
   1.128 +				062A128D1416E9400070199C /* src */,
   1.129 +				29B97315FDCFA39411CA2CEA /* Other Sources */,
   1.130 +				29B97317FDCFA39411CA2CEA /* Resources */,
   1.131 +				29B97323FDCFA39411CA2CEA /* Frameworks */,
   1.132 +				19C28FACFE9D520D11CA2CBB /* Products */,
   1.133 +			);
   1.134 +			name = CustomTemplate;
   1.135 +			sourceTree = "<group>";
   1.136 +		};
   1.137 +		29B97315FDCFA39411CA2CEA /* Other Sources */ = {
   1.138 +			isa = PBXGroup;
   1.139 +			children = (
   1.140 +				32CA4F630368D1EE00C91783 /* istereo_Prefix.pch */,
   1.141 +			);
   1.142 +			name = "Other Sources";
   1.143 +			sourceTree = "<group>";
   1.144 +		};
   1.145 +		29B97317FDCFA39411CA2CEA /* Resources */ = {
   1.146 +			isa = PBXGroup;
   1.147 +			children = (
   1.148 +				28AD733E0D9D9553002E5188 /* MainWindow.xib */,
   1.149 +				8D1107310486CEB800E47090 /* istereo-Info.plist */,
   1.150 +			);
   1.151 +			name = Resources;
   1.152 +			sourceTree = "<group>";
   1.153 +		};
   1.154 +		29B97323FDCFA39411CA2CEA /* Frameworks */ = {
   1.155 +			isa = PBXGroup;
   1.156 +			children = (
   1.157 +				28FD15070DC6FC5B0079059D /* QuartzCore.framework */,
   1.158 +				28FD14FF0DC6FC520079059D /* OpenGLES.framework */,
   1.159 +				1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
   1.160 +				1D30AB110D05D00D00671497 /* Foundation.framework */,
   1.161 +			);
   1.162 +			name = Frameworks;
   1.163 +			sourceTree = "<group>";
   1.164 +		};
   1.165 +/* End PBXGroup section */
   1.166 +
   1.167 +/* Begin PBXNativeTarget section */
   1.168 +		1D6058900D05DD3D006BFB54 /* istereo */ = {
   1.169 +			isa = PBXNativeTarget;
   1.170 +			buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "istereo" */;
   1.171 +			buildPhases = (
   1.172 +				1D60588D0D05DD3D006BFB54 /* Resources */,
   1.173 +				1D60588E0D05DD3D006BFB54 /* Sources */,
   1.174 +				1D60588F0D05DD3D006BFB54 /* Frameworks */,
   1.175 +			);
   1.176 +			buildRules = (
   1.177 +			);
   1.178 +			dependencies = (
   1.179 +			);
   1.180 +			name = istereo;
   1.181 +			productName = istereo;
   1.182 +			productReference = 1D6058910D05DD3D006BFB54 /* istereo.app */;
   1.183 +			productType = "com.apple.product-type.application";
   1.184 +		};
   1.185 +/* End PBXNativeTarget section */
   1.186 +
   1.187 +/* Begin PBXProject section */
   1.188 +		29B97313FDCFA39411CA2CEA /* Project object */ = {
   1.189 +			isa = PBXProject;
   1.190 +			buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "istereo" */;
   1.191 +			compatibilityVersion = "Xcode 3.1";
   1.192 +			hasScannedForEncodings = 1;
   1.193 +			mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
   1.194 +			projectDirPath = "";
   1.195 +			projectRoot = "";
   1.196 +			targets = (
   1.197 +				1D6058900D05DD3D006BFB54 /* istereo */,
   1.198 +			);
   1.199 +		};
   1.200 +/* End PBXProject section */
   1.201 +
   1.202 +/* Begin PBXResourcesBuildPhase section */
   1.203 +		1D60588D0D05DD3D006BFB54 /* Resources */ = {
   1.204 +			isa = PBXResourcesBuildPhase;
   1.205 +			buildActionMask = 2147483647;
   1.206 +			files = (
   1.207 +				28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */,
   1.208 +				062A12AB1416E9A00070199C /* test.p.glsl in Resources */,
   1.209 +				062A12AC1416E9A00070199C /* test.v.glsl in Resources */,
   1.210 +			);
   1.211 +			runOnlyForDeploymentPostprocessing = 0;
   1.212 +		};
   1.213 +/* End PBXResourcesBuildPhase section */
   1.214 +
   1.215 +/* Begin PBXSourcesBuildPhase section */
   1.216 +		1D60588E0D05DD3D006BFB54 /* Sources */ = {
   1.217 +			isa = PBXSourcesBuildPhase;
   1.218 +			buildActionMask = 2147483647;
   1.219 +			files = (
   1.220 +				062A12991416E9750070199C /* EAGLView.m in Sources */,
   1.221 +				062A129A1416E9750070199C /* ES1Renderer.m in Sources */,
   1.222 +				062A129B1416E9750070199C /* ES2Renderer.m in Sources */,
   1.223 +				062A129C1416E9750070199C /* istereoAppDelegate.m in Sources */,
   1.224 +				062A12A51416E9920070199C /* istereo.c in Sources */,
   1.225 +				062A12A61416E9920070199C /* main.m in Sources */,
   1.226 +				062A12A71416E9920070199C /* sanegl.c in Sources */,
   1.227 +				062A12A81416E9920070199C /* sdr.c in Sources */,
   1.228 +			);
   1.229 +			runOnlyForDeploymentPostprocessing = 0;
   1.230 +		};
   1.231 +/* End PBXSourcesBuildPhase section */
   1.232 +
   1.233 +/* Begin XCBuildConfiguration section */
   1.234 +		1D6058940D05DD3E006BFB54 /* Debug */ = {
   1.235 +			isa = XCBuildConfiguration;
   1.236 +			buildSettings = {
   1.237 +				ALWAYS_SEARCH_USER_PATHS = NO;
   1.238 +				COPY_PHASE_STRIP = NO;
   1.239 +				GCC_DYNAMIC_NO_PIC = NO;
   1.240 +				GCC_OPTIMIZATION_LEVEL = 0;
   1.241 +				GCC_PRECOMPILE_PREFIX_HEADER = YES;
   1.242 +				GCC_PREFIX_HEADER = istereo_Prefix.pch;
   1.243 +				"GCC_THUMB_SUPPORT[arch=armv6]" = "";
   1.244 +				INFOPLIST_FILE = "istereo-Info.plist";
   1.245 +				PRODUCT_NAME = istereo;
   1.246 +			};
   1.247 +			name = Debug;
   1.248 +		};
   1.249 +		1D6058950D05DD3E006BFB54 /* Release */ = {
   1.250 +			isa = XCBuildConfiguration;
   1.251 +			buildSettings = {
   1.252 +				ALWAYS_SEARCH_USER_PATHS = NO;
   1.253 +				COPY_PHASE_STRIP = YES;
   1.254 +				GCC_PRECOMPILE_PREFIX_HEADER = YES;
   1.255 +				GCC_PREFIX_HEADER = istereo_Prefix.pch;
   1.256 +				"GCC_THUMB_SUPPORT[arch=armv6]" = "";
   1.257 +				INFOPLIST_FILE = "istereo-Info.plist";
   1.258 +				PRODUCT_NAME = istereo;
   1.259 +				VALIDATE_PRODUCT = YES;
   1.260 +			};
   1.261 +			name = Release;
   1.262 +		};
   1.263 +		C01FCF4F08A954540054247B /* Debug */ = {
   1.264 +			isa = XCBuildConfiguration;
   1.265 +			buildSettings = {
   1.266 +				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
   1.267 +				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
   1.268 +				GCC_C_LANGUAGE_STANDARD = c99;
   1.269 +				GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
   1.270 +				GCC_WARN_ABOUT_RETURN_TYPE = YES;
   1.271 +				GCC_WARN_UNUSED_VARIABLE = YES;
   1.272 +				PREBINDING = NO;
   1.273 +				SDKROOT = iphoneos4.0;
   1.274 +			};
   1.275 +			name = Debug;
   1.276 +		};
   1.277 +		C01FCF5008A954540054247B /* Release */ = {
   1.278 +			isa = XCBuildConfiguration;
   1.279 +			buildSettings = {
   1.280 +				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
   1.281 +				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
   1.282 +				GCC_C_LANGUAGE_STANDARD = c99;
   1.283 +				GCC_WARN_ABOUT_RETURN_TYPE = YES;
   1.284 +				GCC_WARN_UNUSED_VARIABLE = YES;
   1.285 +				OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
   1.286 +				PREBINDING = NO;
   1.287 +				SDKROOT = iphoneos4.0;
   1.288 +			};
   1.289 +			name = Release;
   1.290 +		};
   1.291 +/* End XCBuildConfiguration section */
   1.292 +
   1.293 +/* Begin XCConfigurationList section */
   1.294 +		1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "istereo" */ = {
   1.295 +			isa = XCConfigurationList;
   1.296 +			buildConfigurations = (
   1.297 +				1D6058940D05DD3E006BFB54 /* Debug */,
   1.298 +				1D6058950D05DD3E006BFB54 /* Release */,
   1.299 +			);
   1.300 +			defaultConfigurationIsVisible = 0;
   1.301 +			defaultConfigurationName = Release;
   1.302 +		};
   1.303 +		C01FCF4E08A954540054247B /* Build configuration list for PBXProject "istereo" */ = {
   1.304 +			isa = XCConfigurationList;
   1.305 +			buildConfigurations = (
   1.306 +				C01FCF4F08A954540054247B /* Debug */,
   1.307 +				C01FCF5008A954540054247B /* Release */,
   1.308 +			);
   1.309 +			defaultConfigurationIsVisible = 0;
   1.310 +			defaultConfigurationName = Release;
   1.311 +		};
   1.312 +/* End XCConfigurationList section */
   1.313 +	};
   1.314 +	rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
   1.315 +}
     2.1 --- a/src/istereo.c	Wed Sep 07 02:48:35 2011 +0300
     2.2 +++ b/src/istereo.c	Wed Sep 07 05:33:19 2011 +0300
     2.3 @@ -1,15 +1,20 @@
     2.4  #include <stdio.h>
     2.5  #include <assert.h>
     2.6 +#include <unistd.h>
     2.7  #include "opengl.h"
     2.8  #include "istereo.h"
     2.9  #include "sanegl.h"
    2.10  #include "sdr.h"
    2.11 +#include "objcsucks.h"
    2.12  
    2.13  unsigned int prog;
    2.14  
    2.15  int init(void)
    2.16  {
    2.17 -	if(!(prog = create_program_load("sdr/test.v.glsl", "sdr/test.p.glsl"))) {
    2.18 +	char *path = ocs_get_path(OCS_PATH_RESOURCES);
    2.19 +	chdir(path);
    2.20 +
    2.21 +	if(!(prog = create_program_load("test.v.glsl", "test.p.glsl"))) {
    2.22  		fprintf(stderr, "failed to load shader program\n");
    2.23  		return -1;
    2.24  	}
    2.25 @@ -32,8 +37,6 @@
    2.26  	gl_load_identity();
    2.27  	gl_translatef(0, 0, -8);
    2.28  
    2.29 -	gl_apply_xform(prog);
    2.30 -
    2.31  	gl_begin(GL_QUADS);
    2.32  	gl_color3f(1, 0, 0);
    2.33  	gl_vertex3f(-1, -1, 0);
     3.1 --- a/src/main.m	Wed Sep 07 02:48:35 2011 +0300
     3.2 +++ b/src/main.m	Wed Sep 07 05:33:19 2011 +0300
     3.3 @@ -1,17 +1,9 @@
     3.4 -//
     3.5 -//  main.m
     3.6 -//  istereo
     3.7 -//
     3.8 -//  Created by nuclear on 9/6/11.
     3.9 -//  Copyright __MyCompanyName__ 2011. All rights reserved.
    3.10 -//
    3.11 -
    3.12  #import <UIKit/UIKit.h>
    3.13  
    3.14 -int main(int argc, char *argv[]) {
    3.15 -    
    3.16 -    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    3.17 -    int retVal = UIApplicationMain(argc, argv, nil, nil);
    3.18 -    [pool release];
    3.19 -    return retVal;
    3.20 +int main(int argc, char *argv[])
    3.21 +{
    3.22 +	NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    3.23 +	int retVal = UIApplicationMain(argc, argv, nil, nil);
    3.24 +	[pool release];
    3.25 +	return retVal;
    3.26  }
     4.1 --- a/src/opengl.h	Wed Sep 07 02:48:35 2011 +0300
     4.2 +++ b/src/opengl.h	Wed Sep 07 05:33:19 2011 +0300
     4.3 @@ -1,4 +1,4 @@
     4.4 -#if TARGETIPHONESIMULATOR || TARGETOSIPHONE
     4.5 +#if defined(__IPHONE_3_0) || defined(__IPHONE_3_2) || defined(__IPHONE_4_0)
     4.6  #include <OpenGLES/ES2/gl.h>
     4.7  #else
     4.8  
     5.1 --- a/src/sanegl.c	Wed Sep 07 02:48:35 2011 +0300
     5.2 +++ b/src/sanegl.c	Wed Sep 07 05:33:19 2011 +0300
     5.3 @@ -17,6 +17,7 @@
     5.4  */
     5.5  
     5.6  #include <stdio.h>
     5.7 +#include <stdlib.h>
     5.8  #include <string.h>
     5.9  #include <math.h>
    5.10  #include <assert.h>
    5.11 @@ -418,7 +419,7 @@
    5.12  
    5.13  	if(buffer_full) {
    5.14  		gl_draw_immediate();
    5.15 -		glBegin(prim);	/* reset everything */
    5.16 +		gl_begin(prim);	/* reset everything */
    5.17  	}
    5.18  }
    5.19