Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Can any one help me?

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2000
    Location
    Pakistan
    Posts
    10

    Can any one help me?

    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

  2. #2
    Intern Contributor
    Join Date
    Oct 2000
    Location
    london, england
    Posts
    79

    Re: Can any one help me?

    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
    Later

    Zee

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2000
    Location
    Pakistan
    Posts
    10

    Re: Can any one help me?

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •