introduction to opengl
play

Introduction to OpenGL and GLUT to configure your systems for - PowerPoint PPT Presentation

Goals Introduction to OpenGL and GLUT to configure your systems for compiling OpenGL programs in C For this tutorial... Operating System this tutorial assumes Unix -like operating system an operating system cdf computers will


  1. Goals Introduction to OpenGL and GLUT ● to configure your systems for compiling OpenGL programs in C For this tutorial... Operating System ● this tutorial assumes Unix -like operating system ● an operating system ● cdf computers will work ● a compiler ● Windows is possible with little modification ● the OpenGL libraries and development environments  for example, use cygwin

  2. Compiler OpenGL Libraries ● gcc ● GL – OpenGL library ● already installed on cdf ● GLU – OpenGL utility library ● default on most Linux systems ● glut – OpenGL utility toolkit programming interface ● default with cygwin Obtaining Libraries apt ● cdf – already installed ● Debian -like linux ( GNU/Linux , Ubuntu , see link for others ) ● apt-cache search criteria  use apt-get http://www.debian.org/misc/children-distros  searches for packages matching criteria ● cygwin ● apt-get install package-name  use cygwin installer  requires root privileges ● Redhat -like systems ( Redhat , Fedora , Mandrake , SUSE , ... )  installs package-name  use yum  install apt-get

  3. Makefile Packages (on my system: Ubuntu) ● xlibmesa-gl ● xlibmesa-gl-dev ● xlibmesa-glu ● xlibmesa-glu-dev ● freeglut3 ● freeglut3-dev ● once you know what the packages are, install them using apt-get install Links ● gl & glu: http://www.rush3d.com/reference/opengl-bluebook-1.0/ ● glut: http://www.opengl.org/resources/libraries/glut/spec3/spec3.html

Recommend


More recommend