#include "GLWidget.h"
#include
#include
#include
;
GLWidget::GLWidget(QWidget *parent)
: QGLWidget(parent)
{
objx = ;
objy = ;
objz = ;
}
GLWidget::~GLWidget()
{
}
void GLWidget::initializeGL()
{
glClearColor();
glClearDepth();
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
}
void GLWidget::resizeGL(int w, int h)
{
];
glViewport( , w, h );
glGetIntegerv( GL_VIEWPORT, viewport );
glMatrixMode( GL_PROJECTION );
glLoadIdentity( );
gluPerspective( );
];
glGetDoublev( GL_PROJECTION_MATRIX, projection );
glMatrixMode( GL_MODELVIEW );
glLoadIdentity( );
gluLookAt( );
}
void GLWidget