Download presentation
Presentation is loading. Please wait.
Published byDerek Whitehead Modified over 8 years ago
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.