istereo

changeset 5:76ad575d72d0

trying to make it fucking work
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 07 Sep 2011 07:29:51 +0300
parents 14bbdfcb9030
children f72c585aec26
files istereo.xcodeproj/project.pbxproj sdr/test.p.glsl src/istereo.c
diffstat 3 files changed, 11 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/istereo.xcodeproj/project.pbxproj	Wed Sep 07 06:25:05 2011 +0300
     1.2 +++ b/istereo.xcodeproj/project.pbxproj	Wed Sep 07 07:29:51 2011 +0300
     1.3 @@ -17,6 +17,7 @@
     1.4  		062A12A81416E9920070199C /* sdr.c in Sources */ = {isa = PBXBuildFile; fileRef = 062A12A31416E9920070199C /* sdr.c */; };
     1.5  		062A12AB1416E9A00070199C /* test.p.glsl in Resources */ = {isa = PBXBuildFile; fileRef = 062A12A91416E9A00070199C /* test.p.glsl */; };
     1.6  		062A12AC1416E9A00070199C /* test.v.glsl in Resources */ = {isa = PBXBuildFile; fileRef = 062A12AA1416E9A00070199C /* test.v.glsl */; };
     1.7 +		0649A5BF14171BCF00AB62D4 /* respath.c in Sources */ = {isa = PBXBuildFile; fileRef = 0649A5BD14171BCF00AB62D4 /* respath.c */; };
     1.8  		1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
     1.9  		1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
    1.10  		28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; };
    1.11 @@ -44,6 +45,8 @@
    1.12  		062A12A41416E9920070199C /* sdr.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = sdr.h; path = src/sdr.h; sourceTree = "<group>"; };
    1.13  		062A12A91416E9A00070199C /* test.p.glsl */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = text; name = test.p.glsl; path = sdr/test.p.glsl; sourceTree = "<group>"; };
    1.14  		062A12AA1416E9A00070199C /* test.v.glsl */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = text; name = test.v.glsl; path = sdr/test.v.glsl; sourceTree = "<group>"; };
    1.15 +		0649A5BD14171BCF00AB62D4 /* respath.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; name = respath.c; path = src/respath.c; sourceTree = "<group>"; };
    1.16 +		0649A5BE14171BCF00AB62D4 /* respath.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = respath.h; path = src/respath.h; sourceTree = "<group>"; };
    1.17  		1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
    1.18  		1D6058910D05DD3D006BFB54 /* istereo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = istereo.app; sourceTree = BUILT_PRODUCTS_DIR; };
    1.19  		1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
    1.20 @@ -72,6 +75,8 @@
    1.21  		062A128D1416E9400070199C /* src */ = {
    1.22  			isa = PBXGroup;
    1.23  			children = (
    1.24 +				0649A5BD14171BCF00AB62D4 /* respath.c */,
    1.25 +				0649A5BE14171BCF00AB62D4 /* respath.h */,
    1.26  				062A129D1416E9920070199C /* istereo.c */,
    1.27  				062A129E1416E9920070199C /* istereo.h */,
    1.28  				062A12A01416E9920070199C /* opengl.h */,
    1.29 @@ -222,6 +227,7 @@
    1.30  				062A12A61416E9920070199C /* main.m in Sources */,
    1.31  				062A12A71416E9920070199C /* sanegl.c in Sources */,
    1.32  				062A12A81416E9920070199C /* sdr.c in Sources */,
    1.33 +				0649A5BF14171BCF00AB62D4 /* respath.c in Sources */,
    1.34  			);
    1.35  			runOnlyForDeploymentPostprocessing = 0;
    1.36  		};
     2.1 --- a/sdr/test.p.glsl	Wed Sep 07 06:25:05 2011 +0300
     2.2 +++ b/sdr/test.p.glsl	Wed Sep 07 07:29:51 2011 +0300
     2.3 @@ -1,3 +1,7 @@
     2.4 +#ifdef GL_ES
     2.5 +precision mediump float;
     2.6 +#endif
     2.7 +
     2.8  varying vec4 var_color;
     2.9  
    2.10  void main()
     3.1 --- a/src/istereo.c	Wed Sep 07 06:25:05 2011 +0300
     3.2 +++ b/src/istereo.c	Wed Sep 07 07:29:51 2011 +0300
     3.3 @@ -30,6 +30,7 @@
     3.4  
     3.5  void redraw(void)
     3.6  {
     3.7 +	glClearColor(0.4, 0.6, 1.0, 1.0);
     3.8  	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
     3.9  
    3.10  	bind_program(prog);