out of the screen

If part of my object is out of the screen, how can i enlarge the screen(the window size) so that the entire object comes up…
i dont want to enlarge the object, just want the entire object to appear

Make a fixed ortho/prespective view, in your reshape just change the view port size.

void reshape (int w, int h)
{
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
}

// part of my display routine

void display(void)
{
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

// Set a fix projection here.
glMatrixMode (GL_PROJECTION);
glLoadIdentity();
glOrtho(-10.0, 10.0, 10.0, -10.0, -1.0, 30.0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();

Originally posted by lara:
If part of my object is out of the screen, how can i enlarge the screen(the window size) so that the entire object comes up…
i dont want to enlarge the object, just want the entire object to appear