Ignore:
Timestamp:
Oct 16, 2013, 8:02:40 PM (11 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • projectionDesigner/trunk/projdesigner/src/gui/QGLViewerWidget.cpp

    r4 r433  
    11#include <float.h>
    22#include <QMouseEvent>
     3
     4#include <GL/glu.h>     // Added! for gluPerspective() call. [ben 27Sep13]
    35
    46#include "gui/QGLViewerWidget.h"
     
    213215    glEnable(GL_LIGHT0);
    214216    Vec3f pos = Vec3f(1.0f, 1.0f, 1.0f);
    215     if (!_isnan(m_rot[0]))
     217    if (!isnan(m_rot[0]))
    216218        pos = m_rot * pos;
    217219    GLfloat lposition[] = { pos[0], pos[1], pos[2], 0.0f };
     
    379381            make<Quatf>(AxisAnglef(-m_animY*delta, Vec3f(1.0f, 0.0f, 0.0f)));
    380382        Quatf rot = m_rot * deltaRot;
    381         if (!_isnan(rot[0]))
     383        if (!isnan(rot[0]))
    382384            setView(m_center, rot, m_distance);
    383385        m_lastTime = QTime::currentTime();
Note: See TracChangeset for help on using the changeset viewer.