Subversion Repositories gelsvn

Rev

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

Rev 630 Rev 638
Line 20... Line 20...
20
    glLoadIdentity();
20
    glLoadIdentity();
21
    gluPerspective(FOV_DEG, aspect, znear, zfar);
21
    gluPerspective(FOV_DEG, aspect, znear, zfar);
22
    glMatrixMode(GL_MODELVIEW);
22
    glMatrixMode(GL_MODELVIEW);
23
  }
23
  }
24
 
24
 
-
 
25
  GLViewController::GLViewController()
-
 
26
    : FOV_DEG(53),
-
 
27
      WINX(500), WINY(500), 
-
 
28
      aspect(500/float(500)),
-
 
29
      button_down(false),
-
 
30
      spin(false),
-
 
31
      ball(CGLA::Vec3f(0.0,0.0,0.0), 0.0, 500, 500)
-
 
32
  {
-
 
33
    znear = 0.01f*0.0;
-
 
34
    zfar  = 3*0.0;
-
 
35
    reset_projection();
-
 
36
  }
-
 
37
 
-
 
38
 
25
  GLViewController::GLViewController(int _WINX, int _WINY, const CGLA::Vec3f& centre, float rad)
39
  GLViewController::GLViewController(int _WINX, int _WINY, const CGLA::Vec3f& centre, float rad)
26
    : FOV_DEG(53),
40
    : FOV_DEG(53),
27
      WINX(_WINX), WINY(_WINY), 
41
      WINX(_WINX), WINY(_WINY), 
28
      aspect(WINX/float(WINY)),
42
      aspect(WINX/float(WINY)),
29
      button_down(false),
43
      button_down(false),