invisible

changeset 21:53fe01a4e2f3

foo - backup
author Eleni Maria Stea <eleni@mutantstargoat.com>
date Sun, 10 Nov 2013 14:18:41 +0200
parents 38bf3eec0fac
children 531a814d4d6b
files src/main.cc
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/src/main.cc	Sun Nov 10 14:03:37 2013 +0200
     1.2 +++ b/src/main.cc	Sun Nov 10 14:18:41 2013 +0200
     1.3 @@ -5,6 +5,7 @@
     1.4  
     1.5  #include "kinect.h"
     1.6  #include "frame.h"
     1.7 +#include "sdr.h"
     1.8  #include "tesquad.h"
     1.9  #include "texture.h"
    1.10  
    1.11 @@ -16,8 +17,11 @@
    1.12  Frame *frame;
    1.13  
    1.14  static const char *filename = "data/textures/wallpaper.jpg";
    1.15 +//static const char *vsdr_path = "data/shaders/invisible.v.glsl";
    1.16 +//static const char *fsdr_path = "data/shaders/invisible.f.glsl";
    1.17  static unsigned int drawing;
    1.18  static unsigned int debugging;
    1.19 +//static unsigned int sprog;
    1.20  static unsigned char tex;
    1.21  static bool show;
    1.22  
    1.23 @@ -74,6 +78,7 @@
    1.24  	}
    1.25  	frame->process();
    1.26  
    1.27 +	//glUseProgram(sprog)
    1.28  	glCallList(drawing);
    1.29  	if(show)
    1.30  		glCallList(debugging);
    1.31 @@ -128,6 +133,12 @@
    1.32  		exit(1);
    1.33  	}
    1.34  
    1.35 +	/* shaders setup */
    1.36 +//	if(!(sprog = sdr_getprog(vsdr_path, fsdr_path))) {
    1.37 +//		fprintf(stderr, "Failed to create shader program!\n");
    1.38 +//		exit(1);
    1.39 +//	}
    1.40 +
    1.41  	/* drawing */
    1.42  	drawing = glGenLists(1);
    1.43  	glNewList(drawing, GL_COMPILE);