Presentation is loading. Please wait.

Presentation is loading. Please wait.

CDS 301 Spring, 2013 CH3: MATLAB OpenGL Samples February 28, 2013 Jie Zhang Copyright ©

Similar presentations


Presentation on theme: "CDS 301 Spring, 2013 CH3: MATLAB OpenGL Samples February 28, 2013 Jie Zhang Copyright ©"— Presentation transcript:

1 CDS 301 Spring, 2013 CH3: MATLAB OpenGL Samples February 28, 2013 Jie Zhang Copyright ©

2 References: OpenGL Red book (online) “http://www.glprogramming.com/red/

3 Sample C files, and the resulting images http://www.sgi.com/products/software/opengl/example s/glut/examples/

4 C/C++ & OpenGL To compile in cds##.gmu.edu % forming the object file “test.o” from source code “test.c” $gcc –c –Wall –D_LINUX_ test.c %form the executable from the object “test.o” %through linking OpenGL library files $gcc –lglut –lGLU test.o –o test %run the executable $./test &

5 “test.c”

6 “cube.c”

7 OpenGL project Produce the 2-D Gaussian function using C/OpenGL. A prototype c program will be provided

8 The End


Download ppt "CDS 301 Spring, 2013 CH3: MATLAB OpenGL Samples February 28, 2013 Jie Zhang Copyright ©"

Similar presentations


Ads by Google