Download presentation

Presentation is loading. Please wait.

Published byNestor Netter Modified over 3 years ago

1
School of Computer Science University of Seoul

2
How can we create a window? How can we handle the events? What kind of objects can we render? How can we define/describe/specify the objects? How can we specify the material/color of the objects? How can we transform the objects? How can we set the camera? How can we map what the camera sees onto the window?

3
Using GLUT library functions glutInit Initialize GLUT glutInitDisplayMode Set framebuffer glutInitWindowSize, glutInitWindowPosition and glutCreateWindow Create a window

4
Using GLUT library glut*Func() Register event handler Ex: glutDisplayFunc

5
Points Lines, line strips, line loops Triangles, quadrilaterals, polygons Triangle strips, triangle fans, quad strips Simple & convex polygons only More complex objects supported by GLU & GLUT

6
glBegin(…) ~ glEnd() Specify vertices using glVertex*()

7
glMaterial*() glColor*() Indexed color Current states

8
Specify the transformations as 4x4 matrices (affine transformations)affine transformations Current state Kept in the Modelview matrix stack Hierarchical transformation supported Special functions for transformations: glTranslate*(), glRotate*(), glScale*()

9
Represented as a 4x4 matrix Current state Kept in the projection matrix stack Special functions: glOrtho*(), glFrustum() More functions in GLU (ex: gluPerspective)

10
glViewport() Aspect ratio

Similar presentations

Presentation is loading. Please wait....

OK

OpenGL Basic Drawing 2003 Spring Keng Shih-Ling

OpenGL Basic Drawing 2003 Spring Keng Shih-Ling

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Free ppt on mobile number portability Pdf to ppt online converter free download Ppt on machine translation pdf A ppt on spirit of unity Ppt on applied operational research journal Ppt on abortion Ppt on tcp ip protocol suite layers Download ppt on three states of matter Ppt on sound navigation and ranging systems Free ppt on personality development