COMPUTER SCIENCE AND ENGINEERING
COMPUTER GRAPHICS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
glutinitwindowSize()
|
|
gltinitwindowsize()
|
|
glutInitWindowSize()
|
|
gluInitWIndowSize()
|
Detailed explanation-1: -glutInitWindowPosition and glutInitWindowSize set the initial window position and size respectively. void glutInitWindowSize(int width, int height); void glutInitWindowPosition(int x, int y); width.
Detailed explanation-2: -glutInit is used to initialize the GLUT library. void glutInit(int *argcp, char **argv); argcp. A pointer to the program’s unmodified argc variable from main.
Detailed explanation-3: -Routines beginning with the glutInit-prefix are used to initialize GLUT state. The primary initialization routine is glutInit that should only be called exactly once in a GLUT program. No non-glutInit-prefixed GLUT or OpenGL routines should be called before glutInit.
Detailed explanation-4: -glutInitWindowSize : specifies the initial window width and height, in pixels.