void GLWidget::PaintGL() {
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
glLoadIdentity();
glTranslated( 0.0, 0.0, -10.0 );
glRotated( ( xRot / 16.0 ), 1.0, 0.0, 0.0 );
glRotated( ( yRot / 16.0 ), 0.0, 1.0, 0.0 );
glRotated( ( zRot / 16.0 ), 0.0, 0.0, 1.0 );
glCallList( object );
}
void GLWidget::PaintGL() {
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
glLoadIdentity();
glTranslated( 0.0, 0.0, -10.0 );
glRotated( ( xRot / 16.0 ), 1.0, 0.0, 0.0 );
glRotated( ( yRot / 16.0 ), 0.0, 1.0, 0.0 );
glRotated( ( zRot / 16.0 ), 0.0, 0.0, 1.0 );
glCallList( object );
}
To copy to clipboard, switch view to plain text mode
Bookmarks