

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to opengl programming, covering the basics of opengl as a state machine, the use of vertices to create objects, and the introduction of two matrices: modelview and projection. The document also discusses the clearing of the screen and drawing into a window using opengl, and introduces the opengl utility toolkit (glut) as a toolkit for making starting up and drawing fast and easy. The document also includes instructions on installing glut on windows and using it in java.
Typology: Slides
1 / 3
This page cannot be seen from the preview
Don't miss anything!


lerch.blogspot.com
glClearColor(0.0, 0.0, 0.0, 0.0) glClearDepth(1.0); glClear(GL_C OL O R_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
glClearColor(0.0, 0.0, 0.0, 0.0); glClear(GL_COLOR_BUFFER_BIT); glColor3f(1.0, 1.0, 1.0); glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0); glBegin(GL_POLYG O N); glVertex2f(-0.5, -0.5); glVertex2f(-0.5, 0.5); glVertex2f(0.5, 0.5); glVertex2f(0.5, -0.5); glEnd(); glFlush(); ...
operating / windowing system