130 likes | 259 Vues
Dive into the world of computer graphics with this comprehensive guide to OpenGL. Learn the fundamentals of OpenGL, including the essential libraries: GLU (OpenGL Utility Library) and GLUT (OpenGL Utility Toolkit). This guide covers over 200 functions, geometric primitives, and viewing functions to help you create engaging graphics applications. Whether you're using Windows, Mac, or Linux, discover how to set up your environment for OpenGL development, compile programs, and understand texture mapping and user interactions. Ideal for beginners and aspiring graphics developers.
E N D
CS 470 Computer Graphic Getting Started with OpenGL
Three Parts • OpenGL • glu • glut
opengl • 200 functions • Primitives • Geometric • Discrete (bitmaps) • Attribute functions • Viewing functions
glu • GLU is the OpenGL Utility Library. This is a set of functions to create texture bitmaps from a base image, map coordinates between screen and object space, …
glut • GLUT is the OpenGL Utility Toolkit, a window system independent toolkit for writing OpenGL programs • Generic windows interface • Provides user interaction functionsM
Others • GLX 1.3 is used on Unix OpenGL implementation to manage interaction with the X Window System and to encode OpenGL onto the X protocol stream for remote rendering. • Mesa is a 3-D graphics library with an API which is very similar to that of OpenGL .
You will need… • Opengl • should be there • glu • should be there • glut • Mac – should be there • Linux – should be there if you installed opengl • Windows – may need to download and install
glut • For windows download glut from http://www.xmission.com/~nate/glut.html glut32.dll Windows XP | Server 2003: C:\WINDOWS\system\ Windows 2000: C:\WINNT\system\ glut32.lib C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Lib glut32.h C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl
Linux gcc simplegl2.c -o simplegl2 -lGL -lGLU -lglut \ -L/usr/local/packages/Mesa-6.0.1/lib/ -lm -lX11 \ -L/usr/X11R6/ \ -I/usr/local/packages/Mesa-6.0.1/include/GL/