beginning opengl game programming 2004 phần 6 pps

beginning opengl game programming 2004 phần 6 pps

beginning opengl game programming 2004 phần 6 pps

... supported by your OpenGL implementation. If you’re using Windows, check for Windows-specific extensions as well. Chapter 8 ■ OpenGL Extensions1 96 08 BOGL_GP CH08 3/1/04 10:03 AM Page 1 96 TLFeBOOK Extension ... of OpenGL Extension Prefixes Prefix Meaning/Vendor ARB Extension approved by OpenGL s Architectural Review Board (first introduced with OpenGL 1.2) EXT Extension agreed up...
Ngày tải lên : 05/08/2014, 10:20
  • 36
  • 373
  • 0
beginning opengl game programming 2004 phần 2 ppsx

beginning opengl game programming 2004 phần 2 ppsx

... CGfxOpenGL class, whose definition is shown below. From CGfxOpenGL.h: class CGfxOpenGL { private: int m_windowWidth; int m_windowHeight; float m_angle; public: CGfxOpenGL(); virtual ~CGfxOpenGL(); bool ... will be used to render with OpenGL. This structure must be specified and defined before any OpenGL code will work on a window. ■ Full-screen OpenGL is used by most 3D games that are...
Ngày tải lên : 05/08/2014, 10:20
  • 38
  • 375
  • 0
beginning opengl game programming 2004 phần 4 ppsx

beginning opengl game programming 2004 phần 4 ppsx

... matrix. ■ Translation is performed in OpenGL with the glTranslate() function. ■ Rotation is performed in OpenGL with the glRotate() function. ■ Scaling is performed in OpenGL with the glScale() function. ■ Saving ... orient the OpenGL viewpoint. ■ Use the glLoadMatrix() function to load a user-defined matrix as the current OpenGL matrix. ■ Use the glMultMatrix() function to mul...
Ngày tải lên : 05/08/2014, 10:20
  • 39
  • 340
  • 0
beginning opengl game programming 2004 phần 9 pps

beginning opengl game programming 2004 phần 9 pps

... 10: 06 AM Page 266 TLFeBOOK 277 The Endgame chapter 13 T he endgame. This is the end, and we have a game for you. We’ve covered quite a bit of OpenGL in this book, and now it’s time to put OpenGL ... 13 ■ The Endgame278 Figure 13.1 Classes and their dependencies in the game. Table 13.1 Chess Game Classes Class Description CGfxOpenGL The OpenGL rendering class. The majority of...
Ngày tải lên : 05/08/2014, 10:20
  • 26
  • 369
  • 0
beginning opengl game programming 2004 phần 10 pps

beginning opengl game programming 2004 phần 10 pps

... 24 minification mipmaps and, 167 parameters for filter, 173–174 in texture filtering, 161 – 162 mipmaps, 166 – 168 automatic generation of, 168 and GLU library, 167 – 168 minification filter and, 162 sub-images with, ... W.COURSEP T R.COM / GAMEDE V Beginning C++ Game Programming ISBN: 1-59200-205 -6 $29.99 Game Art for Teens ISBN: 1-59200-307-9 $29.99 Beginning DirectX 9 ISB...
Ngày tải lên : 05/08/2014, 10:20
  • 36
  • 403
  • 0
beginning opengl game programming 2004 phần 1 potx

beginning opengl game programming 2004 phần 1 potx

... . . . . . 266 Depth-Comparison Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 266 Read-Only Depth Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267 The Stencil ... finished writing OpenGL Game Programming. Although the book didn’t cover everything we had initially planned, we hoped that it would bene- fit people learning to program games with O...
Ngày tải lên : 05/08/2014, 10:20
  • 36
  • 309
  • 0
beginning opengl game programming 2004 phần 3 pdf

beginning opengl game programming 2004 phần 3 pdf

... world origin DrawPlane(); } Chapter 4 ■ Transformations and Matrices 76 04 BOGL_GP CH04 3/1/04 9:58 AM Page 76 TLFeBOOK OpenGL provides quad strips as a means of improving the speed of rendering ... example in Figure 3.12. Chapter 3 ■ OpenGL States and Primitives60 Figure 3.11 A polygon can be an arbitrary number of vertices. 03 BOGL_GP CH03 3/1/04 2:34 PM Page 60 TLFeBOOK As you ca...
Ngày tải lên : 05/08/2014, 10:20
  • 42
  • 425
  • 0
beginning opengl game programming 2004 phần 5 ppt

beginning opengl game programming 2004 phần 5 ppt

... snippet creating a 16 × 16 × 16 texel RGB texture using the glTexIm- age3D() function: unsigned char imageData[ 16* 16* 16* 3]; glTexImage3D(GL_TEXTURE_3D, 0, GL_RGB, 16, 16, 16, 0, GL_RGB, GL_UNSIGNED_BYTE, ... R3 GL_UNSIGNED_SHORT_5 _6_ 5 Packed into unsigned 16- bit integer. R5, G6, B5 GL_UNSIGNED_SHORT_5 _6_ 5_REV Packed into unsigned 16- bit integer. B5, G6, R5 GL_UNSIGNED_SHORT_4_4...
Ngày tải lên : 05/08/2014, 10:20
  • 34
  • 468
  • 0
beginning opengl game programming 2004 phần 7 docx

beginning opengl game programming 2004 phần 7 docx

... 1.0); glVertex3f(-1.0, 1.0f, -2.0); glEnd(); } Figure 9 .6 shows this example in the middle of the interpolation. Chapter 9 ■ More on Texture Mapping218 Figure 9 .6 Image interpolation using texture combiners. 09 ... learn several methods for improving your game s performance. ■ Display lists ■ Ver tex arr ays ■ Frustum culling Display Lists After you’ve been writing OpenGL code for a w...
Ngày tải lên : 05/08/2014, 10:20
  • 25
  • 338
  • 0
beginning opengl game programming 2004 phần 8 pptx

beginning opengl game programming 2004 phần 8 pptx

... CGfxOpenGL class: unsigned int CGfxOpenGL::CreateBitmapFont(char *fontName, int fontSize) { HFONT hFont; // windows font unsigned int base; base = glGenLists( 96) ; // create storage for 96 characters if ... length; plane.D /= length; } void CGfxOpenGL::CalculateFrustum() { // get the projection and modelview matrices GLfloat projection[ 16] ; GLfloat modelview[ 16] ; glGetFloatv(GL_PROJECT...
Ngày tải lên : 05/08/2014, 10:20
  • 25
  • 321
  • 0

Xem thêm