实例介绍
openGL 超级宝典第四版 源码 http://www.starstonesoftware.com/OpenGL/fourthEdition.htm http://www.starstonesoftware.com/OpenGL/fourthEdition.htm
【实例截图】
【核心代码】
4744302542919444942.rar
└── src
├── chapt01
│ └── block
│ ├── Block4.tga
│ ├── Block5.tga
│ ├── Block6.tga
│ ├── Block.cpp
│ └── floor.tga
├── chapt02
│ ├── bounce
│ │ └── bounce.cpp
│ ├── glrect
│ │ └── glrect.cpp
│ └── simple
│ └── simple.cpp
├── chapt03
│ ├── lines
│ │ └── lines.cpp
│ ├── linesw
│ │ └── linesw.cpp
│ ├── lstipple
│ │ └── lstipple.cpp
│ ├── lstrips
│ │ └── lstrips.cpp
│ ├── points
│ │ └── points.cpp
│ ├── pointsz
│ │ └── pointsz.cpp
│ ├── pstipple
│ │ └── pstipple.cpp
│ ├── scissor
│ │ └── scissor.cpp
│ ├── single
│ │ └── single.cpp
│ ├── star
│ │ └── star.cpp
│ ├── stencil
│ │ └── stencil.cpp
│ └── triangle
│ └── triangle.cpp
├── chapt04
│ ├── Atom
│ │ └── Atom.cpp
│ ├── Atom2
│ │ └── atom2.cpp
│ ├── Ortho
│ │ └── ortho.cpp
│ ├── Perspect
│ │ └── perspect.cpp
│ ├── Solar
│ │ └── solar.cpp
│ ├── SphereWorld
│ │ └── sphereworld.cpp
│ ├── Transform
│ │ └── transform.cpp
│ └── Transformgl
│ └── transformgl.cpp
├── chapt05
│ ├── ambient
│ │ └── ambient.cpp
│ ├── ccube
│ │ └── ccube.cpp
│ ├── Jet
│ │ └── jet.cpp
│ ├── litjet
│ │ └── litjet.cpp
│ ├── shadow
│ │ └── shadow.cpp
│ ├── shinyjet
│ │ └── shinyjet.cpp
│ ├── sphereworld
│ │ └── sphereworld.cpp
│ ├── spot
│ │ └── spot.cpp
│ └── triangle
│ └── triangle.cpp
├── chapt06
│ ├── Fogged
│ │ └── fogged.cpp
│ ├── MotionBlur
│ │ └── motionblur.cpp
│ ├── MultiSample
│ │ └── multisample.cpp
│ ├── Reflection
│ │ └── reflection.cpp
│ ├── Smoother
│ │ └── smoother.cpp
│ └── sphereworld
│ └── sphereworld.cpp
├── chapt07
│ ├── Bitmaps
│ │ └── bitmaps.cpp
│ ├── ImageLoad
│ │ ├── Fire.tga
│ │ └── imageLoad.cpp
│ ├── Imaging
│ │ ├── horse.tga
│ │ └── imaging.cpp
│ └── Operations
│ ├── horse.tga
│ └── operations.cpp
├── chapt08
│ ├── pyramid
│ │ ├── pyramid.cpp
│ │ └── stone.tga
│ ├── sphereworld
│ │ ├── grass.tga
│ │ ├── orb.tga
│ │ ├── sphereworld.cpp
│ │ └── wood.tga
│ ├── toon
│ │ └── toon.cpp
│ └── tunnel
│ ├── brick.tga
│ ├── ceiling.tga
│ ├── floor.tga
│ └── tunnel.cpp
├── chapt09
│ ├── Anisotropic
│ │ ├── anisotropic.cpp
│ │ ├── brick.tga
│ │ ├── ceiling.tga
│ │ └── floor.tga
│ ├── CubeMap
│ │ ├── cubemap.cpp
│ │ ├── neg_x.tga
│ │ ├── neg_y.tga
│ │ ├── neg_z.tga
│ │ ├── pos_x.tga
│ │ ├── pos_y.tga
│ │ └── pos_z.tga
│ ├── multitexture
│ │ ├── multitexture.cpp
│ │ ├── neg_x.tga
│ │ ├── neg_y.tga
│ │ ├── neg_z.tga
│ │ ├── pos_x.tga
│ │ ├── pos_y.tga
│ │ ├── pos_z.tga
│ │ └── tarnish.tga
│ ├── pointsprites
│ │ ├── moon.tga
│ │ ├── pointsprites.cpp
│ │ └── star.tga
│ ├── sphereworld
│ │ ├── grass.tga
│ │ ├── orb.tga
│ │ ├── sphereworld.cpp
│ │ └── wood.tga
│ └── TexGen
│ ├── Environment.tga
│ ├── stripes.tga
│ └── texgen.cpp
├── chapt10
│ ├── axes3d
│ │ └── axes3d.cpp
│ ├── bez3d
│ │ └── bez3d.cpp
│ ├── bezier
│ │ └── bezier.cpp
│ ├── bezlit
│ │ └── bezlit.cpp
│ ├── florida
│ │ └── florida.cpp
│ ├── nurbc
│ │ └── nurbc.cpp
│ ├── nurbs
│ │ └── nurbs.cpp
│ ├── nurbt
│ │ └── nurbt.cpp
│ └── snowman
│ └── snowman.cpp
├── chapt11
│ ├── cubedx
│ │ └── cubedx.cpp
│ ├── sphereworld
│ │ ├── grass.tga
│ │ ├── orb.tga
│ │ ├── sphereworld.cpp
│ │ └── wood.tga
│ ├── starrynight
│ │ ├── moon.tga
│ │ ├── starrynight.cpp
│ │ └── star.tga
│ ├── thunderbird
│ │ ├── body.cpp
│ │ ├── body.tga
│ │ ├── glass.cpp
│ │ ├── glass.tga
│ │ └── thunderbird.cpp
│ ├── thunderGL
│ │ ├── body.cpp
│ │ ├── body.tga
│ │ ├── glass.cpp
│ │ ├── glass.tga
│ │ ├── neg_x.tga
│ │ ├── neg_y.tga
│ │ ├── neg_z.tga
│ │ ├── pos_x.tga
│ │ ├── pos_y.tga
│ │ ├── pos_z.tga
│ │ └── thundergl.cpp
│ └── vbo
│ ├── body.cpp
│ ├── body.tga
│ ├── glass.cpp
│ ├── glass.tga
│ ├── neg_x.tga
│ ├── neg_y.tga
│ ├── neg_z.tga
│ ├── pos_x.tga
│ ├── pos_y.tga
│ ├── pos_z.tga
│ └── thundergl.cpp
├── chapt12
│ ├── moons
│ │ └── moons.cpp
│ ├── planets
│ │ └── planets.cpp
│ └── select
│ └── select.cpp
├── chapt13
│ └── occquery
│ ├── logo.tga
│ └── occquery.cpp
├── chapt14
│ └── shadowmap
│ └── shadowmap.cpp
├── chapt15
│ └── shaders
│ ├── shaders.cpp
│ └── shaders.h
├── chapt16
│ ├── vertexblend
│ │ ├── shaders
│ │ │ └── skinning.vs
│ │ └── vertexblend.cpp
│ └── vertexshaders
│ ├── shaders
│ │ ├── 3lights.vs
│ │ ├── diffuse.vs
│ │ ├── fogcoord.vs
│ │ ├── fog.vs
│ │ ├── ptsize.vs
│ │ ├── sepspec.vs
│ │ ├── simple.vs
│ │ ├── specular.vs
│ │ ├── stretch.vs
│ │ └── texspec.vs
│ └── vertexshaders.cpp
├── chapt17
│ ├── bumpmap
│ │ ├── bumpmap.cpp
│ │ └── shaders
│ │ ├── bumpmap.fs
│ │ ├── bumpmap.vs
│ │ ├── showbump.fs
│ │ └── showbump.vs
│ ├── fragmentshaders
│ │ ├── fragmentshaders.cpp
│ │ └── shaders
│ │ ├── colorinvert.fs
│ │ ├── fog.fs
│ │ ├── grayinvert.fs
│ │ ├── grayscale.fs
│ │ ├── heatsig.fs
│ │ ├── sepia.fs
│ │ └── simple.fs
│ ├── imageproc
│ │ ├── imageproc.cpp
│ │ └── shaders
│ │ ├── blur.fs
│ │ ├── dilation.fs
│ │ ├── erosion.fs
│ │ ├── laplacian.fs
│ │ ├── passthrough.fs
│ │ ├── prewitt.fs
│ │ ├── sharpen.fs
│ │ └── sobel.fs
│ ├── lighting
│ │ ├── lighting.cpp
│ │ └── shaders
│ │ ├── 3lights.fs
│ │ ├── 3lights.vs
│ │ ├── diffuse.fs
│ │ ├── diffuse.vs
│ │ ├── simple.fs
│ │ ├── simple.vs
│ │ ├── specular.fs
│ │ └── specular.vs
│ └── proctex
│ ├── proctex.cpp
│ └── shaders
│ ├── beachball.fs
│ ├── beachball.vs
│ ├── checkerboard.fs
│ ├── checkerboard.vs
│ ├── toyball.fs
│ └── toyball.vs
├── chapt18
│ ├── fbodrawbuffers
│ │ ├── Babson.tga
│ │ ├── fbodrawbuffers.cpp
│ │ ├── MAMS.tga
│ │ ├── shaders
│ │ │ ├── blur.fs
│ │ │ ├── colorinvert.fs
│ │ │ ├── combine.fs
│ │ │ ├── grayscale.fs
│ │ │ ├── laplacian.fs
│ │ │ └── multirender.fs
│ │ ├── WPI.tga
│ │ └── WRHS.tga
│ ├── fboenvmap
│ │ ├── Babson.tga
│ │ ├── fboenvmap.cpp
│ │ ├── MAMS.tga
│ │ ├── WPI.tga
│ │ └── WRHS.tga
│ ├── fboshadowmap
│ │ └── fboshadowmap.cpp
│ ├── hdrbloom
│ │ ├── hdrbloom.cpp
│ │ └── shaders
│ │ ├── combine.fs
│ │ ├── combine.vs
│ │ ├── gaussian.fs
│ │ ├── gaussian.vs
│ │ ├── hdrball.fs
│ │ ├── hdrball.vs
│ │ ├── show2d.fs
│ │ └── show2d.vs
│ ├── pixbufobj
│ │ ├── pixbufobj.cpp
│ │ └── reservoir.tga
│ └── texfloat
│ ├── openexr-images
│ │ ├── Blobbies.exr
│ │ ├── COPYING
│ │ ├── Desk.exr
│ │ ├── GoldenGate.exr
│ │ ├── LICENSE
│ │ ├── MtTamWest.exr
│ │ ├── Ocean.exr
│ │ ├── Spirals.exr
│ │ ├── StillLife.exr
│ │ └── Tree.exr
│ ├── shaders
│ │ ├── clamped.fs
│ │ ├── iris.fs
│ │ ├── trivial.fs
│ │ └── whitebalance.fs
│ └── texfloat.cpp
├── chapt19
│ ├── fscreen
│ │ └── FScreen.cpp
│ ├── GLRect
│ │ └── GLRect.cpp
│ ├── GLView
│ │ ├── GLView.cpp
│ │ ├── GLViewDlg.cpp
│ │ ├── GLViewDlg.h
│ │ ├── GLView.h
│ │ ├── GLViewPixFormatDlg.cpp
│ │ ├── GLViewPixFormatDlg.h
│ │ ├── GLView.rc
│ │ ├── GLWindow.cpp
│ │ ├── GLWindow.h
│ │ ├── res
│ │ │ ├── Block1.BMP
│ │ │ ├── Block2.BMP
│ │ │ ├── Block3.BMP
│ │ │ ├── Block4.BMP
│ │ │ ├── Block5.BMP
│ │ │ ├── Block6.BMP
│ │ │ ├── GLView.ico
│ │ │ ├── GLView.rc2
│ │ │ ├── Nogl.bmp
│ │ │ └── smallgl.BMP
│ │ ├── resource.h
│ │ ├── StdAfx.cpp
│ │ └── StdAfx.h
│ ├── RThread
│ │ ├── EARTH.BMP
│ │ ├── resource.h
│ │ ├── RThread.cpp
│ │ ├── RThread.h
│ │ ├── RThread.ico
│ │ ├── RThread.rc
│ │ └── small.ico
│ ├── SphereWorld32
│ │ ├── Grass.tga
│ │ ├── Orb.tga
│ │ ├── resource.h
│ │ ├── resources.rc
│ │ ├── SphereWorld32.cpp
│ │ └── Wood.tga
│ ├── Text2D
│ │ └── Text2D.cpp
│ └── Text3D
│ └── Text3D.cpp
└── shared
├── freeglut_ext.h
├── freeglut.h
├── freeglut_static.lib
├── freeglut_std.h
├── GLee.c
├── GLee.h
├── glFrame.h
├── glfrustum.h
├── gltools.cpp
├── gltools.h
├── glut.h
├── math3d.cpp
├── math3d.h
├── openexr-1.4.0-vsnet2003
│ ├── COPYING
│ ├── include
│ │ └── OpenEXR
│ │ ├── halfFunction.h
│ │ ├── half.h
│ │ ├── halfLimits.h
│ │ ├── IexBaseExc.h
│ │ ├── IexErrnoExc.h
│ │ ├── Iex.h
│ │ ├── IexMacros.h
│ │ ├── IexMathExc.h
│ │ ├── IexThrowErrnoExc.h
│ │ ├── IlmThread.h
│ │ ├── IlmThreadMutex.h
│ │ ├── IlmThreadPool.h
│ │ ├── IlmThreadSemaphore.h
│ │ ├── ImathBoxAlgo.h
│ │ ├── ImathBox.h
│ │ ├── ImathColorAlgo.h
│ │ ├── ImathColor.h
│ │ ├── ImathEuler.h
│ │ ├── ImathExc.h
│ │ ├── ImathFrame.h
│ │ ├── ImathFrustum.h
│ │ ├── ImathFun.h
│ │ ├── ImathGL.h
│ │ ├── ImathGLU.h
│ │ ├── ImathHalfLimits.h
│ │ ├── ImathInterval.h
│ │ ├── ImathLimits.h
│ │ ├── ImathLineAlgo.h
│ │ ├── ImathLine.h
│ │ ├── ImathMath.h
│ │ ├── ImathMatrixAlgo.h
│ │ ├── ImathMatrix.h
│ │ ├── ImathPlane.h
│ │ ├── ImathPlatform.h
│ │ ├── ImathQuat.h
│ │ ├── ImathRandom.h
│ │ ├── ImathRoots.h
│ │ ├── ImathShear.h
│ │ ├── ImathSphere.h
│ │ ├── ImathVecAlgo.h
│ │ ├── ImathVec.h
│ │ ├── ImfArray.h
│ │ ├── ImfAttribute.h
│ │ ├── ImfBoxAttribute.h
│ │ ├── ImfChannelListAttribute.h
│ │ ├── ImfChannelList.h
│ │ ├── ImfChromaticitiesAttribute.h
│ │ ├── ImfChromaticities.h
│ │ ├── ImfCompressionAttribute.h
│ │ ├── ImfCompression.h
│ │ ├── ImfConvert.h
│ │ ├── ImfCRgbaFile.h
│ │ ├── ImfDoubleAttribute.h
│ │ ├── ImfEnvmapAttribute.h
│ │ ├── ImfEnvmap.h
│ │ ├── ImfFloatAttribute.h
│ │ ├── ImfFrameBuffer.h
│ │ ├── ImfHeader.h
│ │ ├── ImfHuf.h
│ │ ├── ImfInputFile.h
│ │ ├── ImfInt64.h
│ │ ├── ImfIntAttribute.h
│ │ ├── ImfIO.h
│ │ ├── ImfKeyCodeAttribute.h
│ │ ├── ImfKeyCode.h
│ │ ├── ImfLineOrderAttribute.h
│ │ ├── ImfLineOrder.h
│ │ ├── ImfLut.h
│ │ ├── ImfMatrixAttribute.h
│ │ ├── ImfName.h
│ │ ├── ImfOpaqueAttribute.h
│ │ ├── ImfOutputFile.h
│ │ ├── ImfPixelType.h
│ │ ├── ImfPreviewImageAttribute.h
│ │ ├── ImfPreviewImage.h
│ │ ├── ImfRgbaFile.h
│ │ ├── ImfRgba.h
│ │ ├── ImfRgbaYca.h
│ │ ├── ImfStandardAttributes.h
│ │ ├── ImfStdIO.h
│ │ ├── ImfStringAttribute.h
│ │ ├── ImfTestFile.h
│ │ ├── ImfThreading.h
│ │ ├── ImfTileDescriptionAttribute.h
│ │ ├── ImfTileDescription.h
│ │ ├── ImfTiledInputFile.h
│ │ ├── ImfTiledOutputFile.h
│ │ ├── ImfTiledRgbaFile.h
│ │ ├── ImfTimeCodeAttribute.h
│ │ ├── ImfTimeCode.h
│ │ ├── ImfVecAttribute.h
│ │ ├── ImfVersion.h
│ │ ├── ImfWav.h
│ │ ├── ImfXdr.h
│ │ └── OpenEXRConfig.h
│ ├── lib
│ │ ├── Half.lib
│ │ ├── Iex.lib
│ │ ├── IlmImf.lib
│ │ ├── IlmThread.lib
│ │ ├── Imath.lib
│ │ └── zlib.lib
│ └── README.txt
├── openexr-mac
│ ├── COPYING
│ ├── include
│ │ └── OpenEXR
│ │ ├── halfFunction.h
│ │ ├── half.h
│ │ ├── halfLimits.h
│ │ ├── IexBaseExc.h
│ │ ├── IexErrnoExc.h
│ │ ├── Iex.h
│ │ ├── IexMacros.h
│ │ ├── IexMathExc.h
│ │ ├── IexThrowErrnoExc.h
│ │ ├── IlmThread.h
│ │ ├── IlmThreadMutex.h
│ │ ├── IlmThreadPool.h
│ │ ├── IlmThreadSemaphore.h
│ │ ├── ImathBoxAlgo.h
│ │ ├── ImathBox.h
│ │ ├── ImathColorAlgo.h
│ │ ├── ImathColor.h
│ │ ├── ImathEuler.h
│ │ ├── ImathExc.h
│ │ ├── ImathFrame.h
│ │ ├── ImathFrustum.h
│ │ ├── ImathFun.h
│ │ ├── ImathGL.h
│ │ ├── ImathGLU.h
│ │ ├── ImathHalfLimits.h
│ │ ├── ImathInterval.h
│ │ ├── ImathLimits.h
│ │ ├── ImathLineAlgo.h
│ │ ├── ImathLine.h
│ │ ├── ImathMath.h
│ │ ├── ImathMatrixAlgo.h
│ │ ├── ImathMatrix.h
│ │ ├── ImathPlane.h
│ │ ├── ImathPlatform.h
│ │ ├── ImathQuat.h
│ │ ├── ImathRandom.h
│ │ ├── ImathRoots.h
│ │ ├── ImathShear.h
│ │ ├── ImathSphere.h
│ │ ├── ImathVecAlgo.h
│ │ ├── ImathVec.h
│ │ ├── ImfArray.h
│ │ ├── ImfAttribute.h
│ │ ├── ImfBoxAttribute.h
│ │ ├── ImfChannelListAttribute.h
│ │ ├── ImfChannelList.h
│ │ ├── ImfChromaticitiesAttribute.h
│ │ ├── ImfChromaticities.h
│ │ ├── ImfCompressionAttribute.h
│ │ ├── ImfCompression.h
│ │ ├── ImfConvert.h
│ │ ├── ImfCRgbaFile.h
│ │ ├── ImfDoubleAttribute.h
│ │ ├── ImfEnvmapAttribute.h
│ │ ├── ImfEnvmap.h
│ │ ├── ImfFloatAttribute.h
│ │ ├── ImfFrameBuffer.h
│ │ ├── ImfHeader.h
│ │ ├── ImfHuf.h
│ │ ├── ImfInputFile.h
│ │ ├── ImfInt64.h
│ │ ├── ImfIntAttribute.h
│ │ ├── ImfIO.h
│ │ ├── ImfKeyCodeAttribute.h
│ │ ├── ImfKeyCode.h
│ │ ├── ImfLineOrderAttribute.h
│ │ ├── ImfLineOrder.h
│ │ ├── ImfLut.h
│ │ ├── ImfMatrixAttribute.h
│ │ ├── ImfName.h
│ │ ├── ImfOpaqueAttribute.h
│ │ ├── ImfOutputFile.h
│ │ ├── ImfPixelType.h
│ │ ├── ImfPreviewImageAttribute.h
│ │ ├── ImfPreviewImage.h
│ │ ├── ImfRgbaFile.h
│ │ ├── ImfRgba.h
│ │ ├── ImfRgbaYca.h
│ │ ├── ImfStandardAttributes.h
│ │ ├── ImfStringAttribute.h
│ │ ├── ImfTestFile.h
│ │ ├── ImfThreading.h
│ │ ├── ImfTileDescriptionAttribute.h
│ │ ├── ImfTileDescription.h
│ │ ├── ImfTiledInputFile.h
│ │ ├── ImfTiledOutputFile.h
│ │ ├── ImfTiledRgbaFile.h
│ │ ├── ImfTimeCodeAttribute.h
│ │ ├── ImfTimeCode.h
│ │ ├── ImfVecAttribute.h
│ │ ├── ImfVersion.h
│ │ ├── ImfWav.h
│ │ ├── ImfXdr.h
│ │ └── OpenEXRConfig.h
│ ├── lib
│ │ ├── libHalf.a
│ │ ├── libIex.a
│ │ ├── libIlmImf.a
│ │ ├── libIlmThread.a
│ │ ├── libImath.a
│ │ └── libneon.a
│ └── README.txt
├── ReadMe.txt
├── stopwatch.h
├── TriangleMesh.cpp
├── TriangleMesh.h
├── VBOMesh.cpp
├── VBOMesh.h
└── wglext.h
135 directories, 500 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论