This directory contains program that support Interactive Computer Graphics (Fifth Edition).
They are organized by chapter. Each directory contains the source code relevant to that
chapter. All programs in Appendix A are in these directory. I have also added some programs
referred to in the book but not in the appendices and some others that I use to create
some of the illustrations.
Because 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 <GLUT/glut.h>
#else
#include <GL/glut.h>
#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 <GL/glew.h>
and the intialization
glewInit();
after the glutInitWindow call.
没有合适的资源?快使用搜索试试~ 我知道了~
OpengGL ES3.0 Programming Guide Sample Code
共169个文件
txt:69个
c:36个
exe:23个
1星 需积分: 9 15 下载量 56 浏览量
2014-09-10
23:02:17
上传
评论 1
收藏 3.33MB ZIP 举报
温馨提示
与OpengGL ES 3.0 Programming Guide(2nd Edition)一书配套的代码,可以结合书边看边练。
资源推荐
资源详情
资源评论
收起资源包目录
OpengGL ES3.0 Programming Guide Sample Code (169个子文件)
dynamic.c 12KB
figuretr.c 12KB
polygon.c 8KB
figure.c 8KB
bumptex.c 7KB
particle.c 7KB
wave2.c 6KB
curves.c 6KB
wave.c 6KB
wave.c 6KB
contour.c 5KB
phongMV.c 4KB
nonphoto.c 4KB
phongV.c 4KB
phongMF.c 4KB
morph.c 4KB
trackball.c 4KB
particle.c 4KB
sphere.c 4KB
robot.c 4KB
tex_cube.c 3KB
cubeview.c 3KB
cubetex.c 3KB
cube.c 3KB
mandelbrot.c 3KB
gasket3.c 3KB
cubev.c 3KB
pick.c 3KB
tetra.c 3KB
square.c 2KB
bteapot.c 2KB
single_double.c 2KB
shadow.c 2KB
bres.c 2KB
gasket.c 2KB
gasket2.c 2KB
dynamic.exe 41KB
figuretr.exe 41KB
particle.exe 39KB
figure.exe 37KB
contour.exe 36KB
polygon.exe 36KB
GLSL Example.exe 36KB
pick.exe 34KB
gasket3.exe 33KB
tex_cube.exe 33KB
Book_Programs.exe 33KB
curves.exe 33KB
tetra.exe 33KB
trackball.exe 33KB
cubeview.exe 32KB
gasket2.exe 32KB
mandelbrot.exe 32KB
sphere.exe 32KB
cubev.exe 32KB
gasket.exe 32KB
cube.exe 32KB
single_double.exe 31KB
bres.exe 30KB
vertices.h 7KB
patches.h 2KB
BuildLog.htm 8KB
vc90.idb 59KB
vc90.idb 35KB
GLSL Example.ilk 420KB
Book_Programs.ilk 372KB
Book_Programs.exe.embed.manifest 663B
GLSL Example.exe.embed.manifest 663B
GLSL Example.exe.intermediate.manifest 621B
Book_Programs.exe.intermediate.manifest 621B
GLSL Example.ncb 2.29MB
Book_Programs.ncb 675KB
dynamic.obj 46KB
figuretr.obj 45KB
figure.obj 36KB
wave.obj 28KB
particle.obj 25KB
trackball.obj 21KB
curves.obj 19KB
sphere.obj 19KB
tex_cube.obj 19KB
single_double.obj 17KB
cubeview.obj 17KB
mandelbrot.obj 17KB
cube.obj 16KB
cubev.obj 15KB
bres.obj 12KB
GLSL Example.pdb 435KB
Book_Programs.pdb 427KB
vc90.pdb 60KB
vc90.pdb 60KB
Book_Programs.exe.embed.manifest.res 728B
GLSL Example.exe.embed.manifest.res 728B
Book_Programs.suo 15KB
GLSL Example.suo 10KB
honolulu_raw.txt 581KB
dynamic.txt 8KB
figuretr.txt 8KB
square.txt 7KB
figure.txt 6KB
共 169 条
- 1
- 2
资源评论
- lhr2523930552019-02-04根本不是opengles 3.0的code,
sjiagc
- 粉丝: 7
- 资源: 53
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功