5
practice was merely a discussion of the use of certain commands and graphical programming techniques in particular to obtain different effects and solving some typical problems.
At first the teacher ran a program that exemplified the ripple, like a flag. Explaining that this effect was obtained by implementing a double buffer to get rid of the annoying flicker that past practices had been observed. He said something that perhaps many already knew, that for a good animation requires 24 frames per second.
then began to give a seminar of commands, functions and parameters Glut. For example:
GLUT_RGBA. This sets the color glutInitDisplayMode function ().
GLUT_SINGLE. This reserve minimum space necessary for a frame buffer in the command glutInitDisplayMode ()
glClear (). Function is used to clean buffers.
glFlush (). It is the function that empties the content that has the frame buffer video memory.
glutSwapBuffers (). This command is used to send information from the buffer to video memory and vice versa.
void keyboard (unsigned char key, int x, int y).
is a function that helps us interact with the keyboard and mouse, where x and y are the coordinates of the mouse pointer.
This function can take the coordinates of the mouse pointer.
0 comments:
Post a Comment