Subversion Repositories gelsvn

Rev

Rev 207 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 207 Rev 294
Line 327... Line 327...
327
    ball = new SimpleTrackBall(c,r);
327
    ball = new SimpleTrackBall(c,r);
328
 
328
 
329
    // Setup projection
329
    // Setup projection
330
    glMatrixMode(GL_PROJECTION);
330
    glMatrixMode(GL_PROJECTION);
331
    glLoadIdentity();
331
    glLoadIdentity();
332
    gluPerspective(53,1.0f,r/100,r*3);
332
    gluPerspective(53,1.0f,r/100.0,r*3.0);
333
    glMatrixMode(GL_MODELVIEW);
333
    glMatrixMode(GL_MODELVIEW);
334
 
334
 
335
    // Pass control to GLUT
335
    // Pass control to GLUT
336
    glutMainLoop();
336
    glutMainLoop();
337
 
337