PDA

View Full Version : screen & windows size



vemer
04-17-2003, 01:37 AM
Hello, I write some work and now I have some problem, I use windows98/2000 with Microsoft vc++ 6.0:
1. I need to know how to open a windows
(with glutInitWindowSize) in full size,
(I know that have a function taht tell me the screenSize)

2. I need to know what is the screen size in pixel of the openGL windows for the x and y cordination.

TNX

nexusone
04-17-2003, 07:51 AM
1. glutFullScreen(); will make window full screen.

2. glutGet( command ) x = GLUT_WINDOW_WIDTH and y = GLUT_WINDOW_HEIGHT in pixels

x_window = glutGet(GLUT_WINDOW_WIDTH);

also when glutReshapeFunc is called returns window width/height.

void My_reshape( int width, int height)
{

}



Originally posted by vemer:
Hello, I write some work and now I have some problem, I use windows98/2000 with Microsoft vc++ 6.0:
1. I need to know how to open a windows
(with glutInitWindowSize) in full size,
(I know that have a function taht tell me the screenSize)

2. I need to know what is the screen size in pixel of the openGL windows for the x and y cordination.

TNX