Update of /cvsroot/csdopenglnet/tutorials/lesson03
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13589/lesson03
Modified Files:
lesson03.cs
Log Message:
corrected all examples to use double buffer
Index: lesson03.cs
===================================================================
RCS file: /cvsroot/csdopenglnet/tutorials/lesson03/lesson03.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** lesson03.cs 13 Jul 2004 19:51:59 -0000 1.1
--- lesson03.cs 13 Jul 2004 21:12:56 -0000 1.2
***************
*** 5,9 ****
public Lesson03() {
! glutInitDisplayMode( GLUT_RGB | GLUT_DEPTH );
glutInitWindowSize( 640, 480 );
glutCreateWindow("Lesson 03");
--- 5,9 ----
public Lesson03() {
! glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE );
glutInitWindowSize( 640, 480 );
glutCreateWindow("Lesson 03");
***************
*** 16,25 ****
}
! protected void visibility( int status ) {
! if ( status == GLUT_VISIBLE ) {
! draw();
} else {
glutIdleFunc( null );
! }
}
--- 16,29 ----
}
! protected void visible( int state ) {
! if ( state==GLUT_VISIBLE ) {
! glutIdleFunc( new cb0_glutIdleFunc( redraw ) );
} else {
glutIdleFunc( null );
! }
! }
!
! protected void redraw() {
! glutPostRedisplay();
}
|