Subversion Repositories gelsvn

Rev

Rev 424 | Rev 623 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 424 Rev 594
Line -... Line 1...
-
 
1
/* ----------------------------------------------------------------------- *
-
 
2
 * This file is part of GEL, http://www.imm.dtu.dk/GEL
-
 
3
 * Copyright (C) the authors and DTU Informatics
-
 
4
 * For license and list of authors, see ../../doc/intro.pdf
-
 
5
 * ----------------------------------------------------------------------- */
-
 
6
 
1
#include "gel_glu.h"
7
#include "gel_glu.h"
2
#include "GLViewController.h"
8
#include "GLViewController.h"
3
 
9
 
4
using namespace std;
10
using namespace std;
5
using namespace CGLA;
11
using namespace CGLA;
Line 16... Line 22...
16
  }
22
  }
17
 
23
 
18
  GLViewController::GLViewController(int _WINX, int _WINY, const CGLA::Vec3f& centre, float rad)
24
  GLViewController::GLViewController(int _WINX, int _WINY, const CGLA::Vec3f& centre, float rad)
19
    : FOV_DEG(53),
25
    : FOV_DEG(53),
20
      WINX(_WINX), WINY(_WINY), 
26
      WINX(_WINX), WINY(_WINY), 
21
      aspect(WINX/WINY),
27
      aspect(WINX/float(WINY)),
22
      button_down(false),
28
      button_down(false),
23
      spin(false),
29
      spin(false),
24
      ball(centre, rad, WINX, WINY)
30
      ball(centre, rad, WINX, WINY)
25
  {
31
  {
26
    znear = 0.01f*rad;
32
    znear = 0.01f*rad;