opengl编程基础第三版及源代码
所属分类:OpenGL
开发工具:C/C++
文件大小:7756KB
下载次数:0
上传日期:2020-06-08 17:34:06
上 传 者:
258491
说明: [OpenGL编程基础].(美国)Edward.Angel.清晰版
([OpenGL programming basics]. (US) Edward.Angel . clear version)
文件列表:
[OpenGL编程基础].(美国)Edward.Angel.清晰版.pdf (7954300, 2018-03-05)
OpenGL编程基础(第3版)\chapter02\Debug\simple.obj (5967, 2012-06-02)
OpenGL编程基础(第3版)\chapter02\Debug\simple.pch (288020, 2012-06-02)
OpenGL编程基础(第3版)\chapter02\Debug\simple.pdb (25600, 2012-06-02)
OpenGL编程基础(第3版)\chapter02\Debug\vc60.idb (33792, 2012-06-02)
OpenGL编程基础(第3版)\chapter02\Debug\vc60.pdb (45056, 2012-06-02)
OpenGL编程基础(第3版)\chapter02\Makefile.txt (590, 2012-06-02)
OpenGL编程基础(第3版)\chapter02\simple.c (1291, 2012-06-02)
OpenGL编程基础(第3版)\chapter02\tessellate.c (3275, 2012-06-02)
OpenGL编程基础(第3版)\chapter02\twist.c (3590, 2012-06-02)
OpenGL编程基础(第3版)\chapter03\pick.c (2539, 2012-06-02)
OpenGL编程基础(第3版)\chapter03\single_double.c (2298, 2012-06-02)
OpenGL编程基础(第3版)\chapter04\arraycube.c (2155, 2012-06-02)
OpenGL编程基础(第3版)\chapter04\Debug\glutcube.exe (188522, 2012-07-05)
OpenGL编程基础(第3版)\chapter04\Debug\glutcube.ilk (202716, 2012-07-05)
OpenGL编程基础(第3版)\chapter04\Debug\glutcube.obj (5589, 2012-07-05)
OpenGL编程基础(第3版)\chapter04\Debug\glutcube.pch (283748, 2012-07-05)
OpenGL编程基础(第3版)\chapter04\Debug\glutcube.pdb (451584, 2012-07-05)
OpenGL编程基础(第3版)\chapter04\Debug\vc60.idb (33792, 2012-07-05)
OpenGL编程基础(第3版)\chapter04\Debug\vc60.pdb (45056, 2012-07-05)
OpenGL编程基础(第3版)\chapter04\glutcube.c (854, 2012-07-05)
OpenGL编程基础(第3版)\chapter04\glutcube.dsp (3423, 2012-07-05)
OpenGL编程基础(第3版)\chapter04\glutcube.dsw (524, 2012-07-05)
OpenGL编程基础(第3版)\chapter04\glutcube.ncb (41984, 2012-07-05)
OpenGL编程基础(第3版)\chapter04\glutcube.opt (48640, 2012-07-05)
OpenGL编程基础(第3版)\chapter04\glutcube.plg (756, 2012-07-05)
OpenGL编程基础(第3版)\chapter04\vertexarraycube.c (1864, 2012-06-02)
OpenGL编程基础(第3版)\chapter05\cube.c (2760, 2012-06-02)
OpenGL编程基础(第3版)\chapter05\figureline.c (7053, 2012-06-02)
OpenGL编程基础(第3版)\chapter05\figuretrline.c (10972, 2012-06-02)
OpenGL编程基础(第3版)\chapter05\robot.c (3889, 2012-06-02)
OpenGL编程基础(第3版)\chapter05\shadow.c (2053, 2012-06-02)
OpenGL编程基础(第3版)\chapter06\cubet.c (2795, 2012-06-02)
OpenGL编程基础(第3版)\chapter06\dynamic.c (12437, 2012-06-02)
OpenGL编程基础(第3版)\chapter06\figure.c (8064, 2012-06-02)
OpenGL编程基础(第3版)\chapter06\figuretr.c (12064, 2012-06-02)
... ...
This directory contains program that support the third edition of the OpenGL Primer.
They are organized by chapter. Each directory contains the source code relevant to that
chapter.
Because under Mac OSX the GLUT header files are stored in the GLUT include rather than GL as on other systems,
I have added the following compiler directive to each program so each should compile without
modification on all architectures
#ifdef __APPLE_
#include
#else
#include
#endif
If you compile and link your code from a command line, then the following Makefile should
work on most linux systems. Use the LDLIBS line that fits your X11 installation.
C = gcc
#LDLIBS = -lglut -lGL -lGLU -lXmu -lX11 -lm
LDLIBS = -lglut -lGL -lXmu -lX11 -lm -L/usr/X11R6/lib -I/usr/X11R6/include
.c:
$(CC) $@.c $(LDLIBS) -o $@
For Mac OS X, the following is a minimal Makefile for Mac OS X
GCC_OPTIONS=-Wall -pedantic
GL_OPTIONS=-framework OpenGL -framework GLUT
OPTIONS=$(GCC_OPTIONS) $(GL_OPTIONS)
.c:
gcc $@.c $(OPTIONS) -o $@
Using the proper makefile, you should be able to comile a single program myprogram.c by
make myprogram
For Windows platforms, if you write your own shaders, you will also have to install the
GLEW libraries from sourceforge.com. Then add the include
#include
and the intialization
glewInit();
after the glutInitWindow call.
近期下载者:
相关文件:
收藏者: