# HG changeset patch # User John Tsiombikas # Date 1315369791 -10800 # Node ID 76ad575d72d0808866cf01f8b2edcf590be9fa93 # Parent 14bbdfcb9030e9ec78add7f7559f613dedb99633 trying to make it fucking work diff -r 14bbdfcb9030 -r 76ad575d72d0 istereo.xcodeproj/project.pbxproj --- a/istereo.xcodeproj/project.pbxproj Wed Sep 07 06:25:05 2011 +0300 +++ b/istereo.xcodeproj/project.pbxproj Wed Sep 07 07:29:51 2011 +0300 @@ -17,6 +17,7 @@ 062A12A81416E9920070199C /* sdr.c in Sources */ = {isa = PBXBuildFile; fileRef = 062A12A31416E9920070199C /* sdr.c */; }; 062A12AB1416E9A00070199C /* test.p.glsl in Resources */ = {isa = PBXBuildFile; fileRef = 062A12A91416E9A00070199C /* test.p.glsl */; }; 062A12AC1416E9A00070199C /* test.v.glsl in Resources */ = {isa = PBXBuildFile; fileRef = 062A12AA1416E9A00070199C /* test.v.glsl */; }; + 0649A5BF14171BCF00AB62D4 /* respath.c in Sources */ = {isa = PBXBuildFile; fileRef = 0649A5BD14171BCF00AB62D4 /* respath.c */; }; 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 */; }; @@ -44,6 +45,8 @@ 062A12A41416E9920070199C /* sdr.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = sdr.h; path = src/sdr.h; sourceTree = ""; }; 062A12A91416E9A00070199C /* test.p.glsl */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = text; name = test.p.glsl; path = sdr/test.p.glsl; sourceTree = ""; }; 062A12AA1416E9A00070199C /* test.v.glsl */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = text; name = test.v.glsl; path = sdr/test.v.glsl; sourceTree = ""; }; + 0649A5BD14171BCF00AB62D4 /* respath.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; name = respath.c; path = src/respath.c; sourceTree = ""; }; + 0649A5BE14171BCF00AB62D4 /* respath.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = respath.h; path = src/respath.h; sourceTree = ""; }; 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 1D6058910D05DD3D006BFB54 /* istereo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = istereo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; @@ -72,6 +75,8 @@ 062A128D1416E9400070199C /* src */ = { isa = PBXGroup; children = ( + 0649A5BD14171BCF00AB62D4 /* respath.c */, + 0649A5BE14171BCF00AB62D4 /* respath.h */, 062A129D1416E9920070199C /* istereo.c */, 062A129E1416E9920070199C /* istereo.h */, 062A12A01416E9920070199C /* opengl.h */, @@ -222,6 +227,7 @@ 062A12A61416E9920070199C /* main.m in Sources */, 062A12A71416E9920070199C /* sanegl.c in Sources */, 062A12A81416E9920070199C /* sdr.c in Sources */, + 0649A5BF14171BCF00AB62D4 /* respath.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff -r 14bbdfcb9030 -r 76ad575d72d0 sdr/test.p.glsl --- a/sdr/test.p.glsl Wed Sep 07 06:25:05 2011 +0300 +++ b/sdr/test.p.glsl Wed Sep 07 07:29:51 2011 +0300 @@ -1,3 +1,7 @@ +#ifdef GL_ES +precision mediump float; +#endif + varying vec4 var_color; void main() diff -r 14bbdfcb9030 -r 76ad575d72d0 src/istereo.c --- a/src/istereo.c Wed Sep 07 06:25:05 2011 +0300 +++ b/src/istereo.c Wed Sep 07 07:29:51 2011 +0300 @@ -30,6 +30,7 @@ void redraw(void) { + glClearColor(0.4, 0.6, 1.0, 1.0); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); bind_program(prog);