glviewvol

diff src/main.cc @ 3:32c4a7160350

den kanei kryo stin ellada
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 28 Dec 2014 21:48:15 +0200
parents cc9e0d8590e2
children 04330eb80b36
line diff
     1.1 --- a/src/main.cc	Sun Dec 28 15:26:36 2014 +0200
     1.2 +++ b/src/main.cc	Sun Dec 28 21:48:15 2014 +0200
     1.3 @@ -11,6 +11,7 @@
     1.4  #endif
     1.5  
     1.6  #include "dicomview.h"
     1.7 +#include "opt.h"
     1.8  
     1.9  static void display();
    1.10  static void reshape(int x, int y);
    1.11 @@ -22,6 +23,11 @@
    1.12  int main(int argc, char **argv)
    1.13  {
    1.14  	glutInit(&argc, argv);
    1.15 +
    1.16 +	if(parse_args(argc, argv) == -1) {
    1.17 +		return 1;
    1.18 +	}
    1.19 +
    1.20  	glutInitWindowSize(1280, 800);
    1.21  	glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
    1.22  	glutCreateWindow("dicom viewer");