Introduction to
Computer Graphics
with OpenGL/GLUT
What is OpenGL?
A software interface to graphics hardware
Graphics rendering API (Low Level)
High-quality color images composed of
geometric and image primitives
Window system independent
Operating system independent
OpenGL Basics
Graphics Pipeline
Rendering
Typically execution of OpenGL commands
Converting geometric/mathematical object
descriptions into frame buffer values
OpenGL can render:
Geometric primitives
Lines, points, polygons, etc…
Bitmaps and Images
Images and geometry linked through
texture mapping
OpenGL and GLUT
GLUT (OpenGL Utility Toolkit)
An auxiliary library
A portable windowing API
Easier to show the output of your OpenGL application
Not officially part of OpenGL
Handles:
Window creation,
OS system calls
Mouse buttons, movement, keyboard, etc…
Callbacks
How to install GLUT?
Download GLUT
http://www.opengl.org/resources/libraries/glut.html
Copy the files to following folders:
glut.h VC/include/gl/
glut32.lib VC/lib/
glut32.dll windows/system32/
Header Files:
#include <GL/glut.h>
#include <GL/gl.h>
Include glut automatically includes other header files