PDA

View Full Version : Can any one help me?



asim
01-27-2001, 11:34 PM
i have already posted a question regarding the speed of programs that uses opengl for
graphics.
i want to ask how can i improve my program
in respect of less resource utilization (memory usage).
does any one know how to create a window using GLUT of resolution 320x240
if u people find convenient please answer
bye
ASIM

ZeeBoy
02-03-2001, 07:09 AM
int main(int argc, char **argv)
{

glutInit ( &argc, argv ) ;
glutInitDisplayMode ( GLUT_DOUBLE | GLUT_RGB ) ;
glutInitWindowSize ( winWidth, winHeight ) ;
glutInitWindowPosition( 50, 50 ) ;
glutCreateWindow ( "COPPER" ) ;
glutFullScreen();
MyInit() ;

glutReshapeFunc ( Reshape ) ;
glutDisplayFunc ( Display ) ;
glutKeyboardFunc ( Keys ) ;
glutSpecialFunc ( Cursors );

glutMainLoop() ;

return 0;
}


glutInitWindowSize ( winWidth, winHeight ) ;

winWidh and winHeight r integer values that represent ur window size or resolution in fullscreen mode

asim
02-06-2001, 05:15 AM
i have tried this but of no use
there is no change in resolution of window
whether i give 320,240 or 640,480 parameters.
what should i do now?
ASIM