rbtree

changeset 11:a22997b0470e

fixed the visualization
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 03 Sep 2012 01:00:01 +0300
parents b45febfd2922
children ea44ca011995
files test/vis/test.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/test/vis/test.c	Mon Apr 16 00:30:59 2012 +0300
     1.2 +++ b/test/vis/test.c	Mon Sep 03 01:00:01 2012 +0300
     1.3 @@ -33,6 +33,8 @@
     1.4  {
     1.5  	int i;
     1.6  
     1.7 +	init_gl(argc, argv);
     1.8 +
     1.9  	if(argv[1]) {
    1.10  		if(!isdigit(argv[1][0])) {
    1.11  			fprintf(stderr, "pass a fucking number, not: %s\n", argv[1]);
    1.12 @@ -54,7 +56,7 @@
    1.13  		rb_inserti(tree, i, 0);
    1.14  	}
    1.15  
    1.16 -	init_gl(argc, argv);
    1.17 +	glutMainLoop();
    1.18  	return 0;
    1.19  }
    1.20  
    1.21 @@ -75,7 +77,7 @@
    1.22  {
    1.23  	glutInitWindowSize(1280, 720);
    1.24  	glutInit(&argc, argv);
    1.25 -	glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_MULTISAMPLE);
    1.26 +	glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE | GLUT_MULTISAMPLE);
    1.27  
    1.28  	glutCreateWindow("foo");
    1.29  
    1.30 @@ -87,8 +89,6 @@
    1.31  
    1.32  	glEnable(GL_DEPTH_TEST);
    1.33  	glEnable(GL_MULTISAMPLE);
    1.34 -
    1.35 -	glutMainLoop();
    1.36  }
    1.37  
    1.38  void disp(void)