Download presentation
Presentation is loading. Please wait.
Published byRosamond Anis Parks Modified over 8 years ago
1
Computer Graphics (fall,2010) School of Computer Science University of Seoul Minho Kim
2
Chapter 2 Initial Steps in Drawing Figures
3
To Get Started... ● What we need? ● To create a window ● To handle events ● To render objects ● OpenGL only supports “rendering” process ● Helper library required → GLUT (GL Utility Toolkit)
4
sample01.c ● Minimal OpenGL program ● How can we compile it? ● What each function call does? ● What happens if we remove each function call? ● What is the relationship between the coordinates of the vertices and the screen? ● How can we change the initial window size/position? ● How can we change the color used to clear the screen? ● How can we change the color of the rectangle? ● How can we draw other primitives?
5
More on OpenGL/GLUT ● Naming conventions Naming conventions ● Data types Data types ● What are the buffers other than color buffer? ● How many states are there?states ● Which objects can we draw?objects ● What other events can we handle?
6
sample02.c ● What do we need to do for “double buffering”? ● How can we handle the keyboard event? ● How can we handle other key events, such as function keys and arrow keys? ● How can we handle modifier keys?modifier keys ● How can we change the mapping between the coordinate system and the screen?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.