beginning opengl game programming 2004 phần 3 pdf

beginning opengl game programming 2004 phần 3 pdf

beginning opengl game programming 2004 phần 3 pdf

... screenshot of this 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 CH 03 3/1/04 2 :34 PM Page 60 TLFeBOOK As you ... culling; it’s used by other OpenGL subsystems, including lighting. Chapter 3 ■ OpenGL States and Primitives54 03 BOGL_GP CH 03 3/1/04 2 :34 PM Page 54 TLFeBOOK glVe...
Ngày tải lên : 05/08/2014, 10:20
  • 42
  • 425
  • 0
beginning opengl game programming 2004 phần 1 potx

beginning opengl game programming 2004 phần 1 potx

... 0.0); glEnd(); glBegin(GL_POLYGON); glColor3f(1.0, 1.0, 1.0); glVertex3f(-1.0, 2.0, 0.0); glColor3f(1.0, 1.0, 0.0); glVertex3f( -3. 0, -0.5, 0.0); glColor3f(0.0, 1.0, 1.0); glVertex3f(-1.5, -3. 0, 0.0); A Sneak Peek 11 01 BOGL_GP CH01 3/ 1/04 ... GL_DEPTH_BUFFER_BIT); glBegin(GL_TRIANGLES); glColor3f(1.0, 0.0, 0.0); glVertex3f(2.0, 2.5, -1.0); glColor3f(0.0, 1.0, 0.0); glVertex3f( -3. 5, -2....
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

... that you can turn on and off with these functions. Chapter 3 ■ OpenGL States and Primitives36 03 BOGL_GP CH 03 3/1/04 2 :34 PM Page 36 TLFeBOOK As you can see, this algorithm is very similar to ... stippling. Figure 3. 4 is a screenshot of this line example. Handling Primitives 49 Figure 3. 3 A sample stipple pattern demonstrating how the bit order is interpreted. 03 BOGL_GP CH...
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

... following: glBegin(GL_TRIANGLES); glNormal3f(–0.707f, 0.707f, 0.0); glVertex3f( 3. 0, 0.0, 2.0); glNormal3f(0.707f, 0.707f, 0.0); glVertex3f(2.0, 0.0, 0.0); glNormal3f(0.0, 0.707f, –0.707f); glVertex3f(–1.0, 0.0, 3. 0); glEnd(); Calculating ... y direction. glBegin(GL_TRIANGLES); glNormal3f(0.0, 1.0, 0.0); glVertex3f( 3. 0, 0.0, 2.0); glVertex3f(2.0, 0.0, 0.0); glVertex3f(–1.0, 0.0, 3. 0); gl...
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

... the top of the CGfxOpenGL.cpp file: unsigned char letterA[] = { 0xC0, 0x 03, 0xC0, 0x 03, 0xC0, 0x 03, 0xC0, 0x 03, 0xC0, 0x 03, 0xDF, 0xFB, 0x7F, 0xFE, 0x60, 0x06, 0x30, 0x0C, 0x30, 0x0C, 0x18, 0x18, 0x18, ... affect textureObjects[0] glBindTexture(GL_TEXTURE_3D, textureObjects[1]); Using the Texture Map 1 53 07 BOGL_GP CH07 3/ 1/04 10: 03 AM Page 1 53 TLFeBOOK An OpenGL Bitmap E...
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

... example: glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_LOD_BIAS, 3. 0); Texture Parameters 1 73 07 BOGL_GP CH07 3/ 1/04 10: 03 AM Page 1 73 TLFeBOOK Checking the Name String Calling glGetString() with GL_EXTENSIONS returns ... pixels); Extension Extension name: EXT_texture3D Name string: GL_EXT_texture3D Promoted to core: OpenGL 1.2 Function names: glTexSubImage3DEXT() , glCopyTexSubImage3...
Ngày tải lên : 05/08/2014, 10:20
  • 36
  • 373
  • 0
beginning opengl game programming 2004 phần 7 docx

beginning opengl game programming 2004 phần 7 docx

... GL_COMPILE); glBegin(GL_TRIANGLE_FAN); glVertex3f(0.0, 1.0, 0.0); glVertex3f(-1.0, 0.0, 1.0); glVertex3f(1.0, 0.0, 1.0); glVertex3f(1.0, 0.0, -1.0); glVertex3f(-1.0, 0.0, -1.0); glEnd(); glEndList(); } Display Lists 225 10 BOGL_GP CH10 3/ 1/04 ... DrawPyramid() { glBegin(GL_TRIANGLE_FAN); glVertex3f(0.0, 1.0, 0.0); glVertex3f(-1.0, 0.0, 1.0); glVertex3f(1.0, 0.0, 1.0); glVertex3f(1.0, 0.0, -...
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

... (x,y) GL_C4UB_V3F * Color, 4 elements (r,g,b,a), and position, 3 elements (x,y,z) GL_C3F_V3F Color, 3 elements (r,g,b), and position, 3 elements (x,y,z) GL_N3F_V3F Normals, 3 elements, and position, 3 elements ... elements (r,g,b) and position, 3 elements (x,y,z) GL_T2F_N3F_V3F Texture coordinates, 2 elements (s,t), normals, 3 elements, and position, 3 elements (x,y,z) GL_T2F_...
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

... the Chapter 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 OpenGL ... passes. 12 BOGL_GP CH12 3/ 1/04 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 Op...
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

... function, 233 – 234 glInterleavedArrays() function, 236 – 237 glMultiDrawArrays() function, 231 – 232 glMultiDrawElements() function, 233 interleaved arrays, 235 – 237 locking, 238 – 239 Marbles demo, 239 –241 multiple ... 295–298 binding texture objects, 1 53 154 bitmap fonts, 249–2 53 display lists for, 250 bitmaps, 133 – 138 data, specifying, 134 drawing, 135 – 136 example of, 13...
Ngày tải lên : 05/08/2014, 10:20
  • 36
  • 403
  • 0

Xem thêm

Từ khóa: