50 likes | 202 Views
CPSC 453 Tutorial. Xin Liu Sep 23, 2013. OpenGL. An open standard of rendering pipeline A software interface to graphics hardware A useful set of APIs for 3D graphics. Libraries for building graphics program. OpenGL GLU (OpenGL utility) GLUT (OpenGL utility toolkit) Window management
E N D
CPSC 453 Tutorial Xin Liu Sep 23, 2013
OpenGL • An open standard of rendering pipeline • A software interface to graphics hardware • A useful set of APIs for 3D graphics
Libraries for building graphics program • OpenGL • GLU (OpenGL utility) • GLUT (OpenGL utility toolkit) • Window management • User interaction • GLEW (OpenGL extension wrangler library) • To access full OpenGL functionality available via the driver • Included in GLTools • GLTools • Provide stock shaders • Provide a math library • generate and render simple 3D objects • manage view frustum, camera, etc. • Built on GLEW
Get Started • Download MyGLTools from pages.cpsc.ucalgary.ca/~liuxin • Download main.cpp • Create an empty C++ project “MyFirstGL” • Import main.cpp to your project • Setup include paths, lib paths • Properties->C/C++ General->Paths and Symbols • Add include paths • Add library paths • Setup C++ Linker • Properties->C/C++ Build->Settings->GCC C++ Linker->Libraries • X11 GL GLU glut MyGLTools • Build and Run
Assignment 0 • Optional • Try to make and run • Build projects with Eclipse • Play with the code