beginning opengl game programming 2004 phần 7 docx

beginning opengl game programming 2004 phần 7 docx

beginning opengl game programming 2004 phần 7 docx

... ARB_texture_env_combine and ARB_texture_env_dot3 extensions were added in OpenGL 1.3, and ARB_texture_env_crossbar was added in OpenGL 1.4. In Chapter 7, you learned about various texture modes that can be selected ... 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 f...
Ngày tải lên : 05/08/2014, 10:20
  • 25
  • 338
  • 0
beginning opengl game programming 2004 phần 1 potx

beginning opengl game programming 2004 phần 1 potx

... Endgame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 The Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 Using OpenGL ... 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...
Ngày tải lên : 05/08/2014, 10:20
  • 36
  • 309
  • 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 ... the implementation, located in CGfxOpenGL.cpp : #ifdef _WINDOWS #include <windows.h> #endif An OpenGL Application 27 02 BOGL_GP CH02 3/1/04 9: 57 AM Page 27 TLFeBOOK You can l...
Ngày tải lên : 05/08/2014, 10:20
  • 38
  • 375
  • 0
beginning opengl game programming 2004 phần 3 pdf

beginning opengl game programming 2004 phần 3 pdf

... following: glRotatef(135.0f, 0.0f, 1.0f, 0.0f); OpenGL and Matrices 77 Figure 4.6 A screenshot of the Translation example. 04 BOGL_GP CH04 3/1/04 9:58 AM Page 77 TLFeBOOK This sets the current matrix ... for all mathematical computations. As you will soon see, OpenGL has what is called the OpenGL and Matrices 73 04 BOGL_GP CH04 3/1/04 9:58 AM Page 73 TLFeBOOK Here is a short cod...
Ngày tải lên : 05/08/2014, 10:20
  • 42
  • 425
  • 0
beginning opengl game programming 2004 phần 4 ppsx

beginning opengl game programming 2004 phần 4 ppsx

... following: glBegin(GL_TRIANGLES); glNormal3f(–0 .70 7f, 0 .70 7f, 0.0); glVertex3f(–3.0, 0.0, 2.0); glNormal3f(0 .70 7f, 0 .70 7f, 0.0); glVertex3f(2.0, 0.0, 0.0); glNormal3f(0.0, 0 .70 7f, –0 .70 7f); glVertex3f(–1.0, 0.0, ... orient the OpenGL viewpoint. ■ Use the glLoadMatrix() function to load a user-defined matrix as the current OpenGL matrix. ■ Use the glMultMatrix() function to m...
Ngày tải lên : 05/08/2014, 10:20
  • 39
  • 340
  • 0
beginning opengl game programming 2004 phần 5 ppt

beginning opengl game programming 2004 phần 5 ppt

... core: OpenGL 1.2 Function names: glTexImage3DEXT() Tokens: GL_TEXTURE_3D_EXT Using the Texture Map 159 07 BOGL_GP CH 07 3/1/04 10:03 AM Page 159 TLFeBOOK Texture Priority You can guide OpenGL ... with the polygons to which you apply it. Chapter 7 ■ Texture Mapping150 Figure 7. 1 One-, two-, and three-dimensional textures. 07 BOGL_GP CH 07 3/1/04 10:03 AM Page 150 TLFeBOOK glRast...
Ngày tải lên : 05/08/2014, 10:20
  • 34
  • 468
  • 0
beginning opengl game programming 2004 phần 6 pps

beginning opengl game programming 2004 phần 6 pps

... and Texture Functions 175 Figure 7. 9 Texture environments operate on all textures passed through their associated texture units. 07 BOGL_GP CH 07 3/1/04 10:03 AM Page 175 TLFeBOOK glLoadIdentity(); glRotatef(angle, ... the actual width and height of the terrain in world units. Chapter 7 ■ Texture Mapping 178 07 BOGL_GP CH 07 3/1/04 10:03 AM Page 178 TLFeBOOK When you assign the...
Ngày tải lên : 05/08/2014, 10:20
  • 36
  • 373
  • 0
beginning opengl game programming 2004 phần 8 pptx

beginning opengl game programming 2004 phần 8 pptx

... performance. Fortunately, you know more about your game data than OpenGL does, and you can use this information to make rendering more efficient. For example, your game generally consists of models made ... so on). With your data stored in arrays, it’s ready for use by OpenGL s vertex array functions. Enabling Vertex Arrays Like most OpenGL features, to be able to use vertex arrays,...
Ngày tải lên : 05/08/2014, 10:20
  • 25
  • 321
  • 0
beginning opengl game programming 2004 phần 9 pps

beginning opengl game programming 2004 phần 9 pps

... 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 to work. ... 13 ■ The Endgame 278 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

... 230 NVIDIA, 7 Nvidia GeForce cards, 37 O 1D textures, 159 online resources, 295–2 97 OpenGL architecture, 7 9 book resources, 2 97 description of, 6–10 history of, 7 online resources, 2 97 Version 1.5, 7 OpenGL ... 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-3 07- 9 $29.99 Beginning DirectX 9...
Ngày tải lên : 05/08/2014, 10:20
  • 36
  • 403
  • 0

Xem thêm