Cs 470 computer graphic
This presentation is the property of its rightful owner.
Sponsored Links
1 / 13

CS 470 Computer Graphic PowerPoint PPT Presentation


  • 64 Views
  • Uploaded on
  • Presentation posted in: General

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.

Download Presentation

CS 470 Computer Graphic

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Cs 470 computer graphic

CS 470 Computer Graphic

Getting Started with OpenGL


Three parts

Three Parts

  • OpenGL

  • glu

  • glut


Opengl

opengl

  • 200 functions

  • Primitives

    • Geometric

    • Discrete (bitmaps)

  • Attribute functions

  • Viewing functions


Cs 470 computer graphic

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, …


Cs 470 computer graphic

glut

  • GLUT is the OpenGL Utility Toolkit, a window system independent toolkit for writing OpenGL programs

  • Generic windows interface

  • Provides user interaction functionsM


Others

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

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


Cs 470 computer graphic

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


Building programs in opengl

Building programs in opengl


Cs 470 computer graphic

Mac


Linux

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/


Windows

Windows


  • Login