Jump to content
  • Advertisement
Sign in to follow this  

Scroll bar

This topic is 4173 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello, i am creating an application to generate a panorama image. Since displaying the panorama image requires a large window, i would like to make use of scroll bars. Can anyone help me? What can i modify in this function to get the scrollbar? void myReshape( int width, int height) { if (height == 0) height = 1; glViewport (0, 0, (GLsizei) width, (GLsizei) height); glMatrixMode( GL_PROJECTION ); glLoadIdentity(); gluOrtho2D(-1100.0, 825.0, 1100.0, -825.0); glMatrixMode( GL_MODELVIEW ); glLoadIdentity(); return; } -------- or modifying my main function which has : int main(int argc, char* argv[]) { glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH ); glutInitWindowPosition( 50, 50); glutInitWindowSize( width, height); main_window = glutCreateWindow( "Panorama Creator" ); myInitDisplay(width, height); . . .

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!