... < 3; x++) { glBegin(GL_TRIANGLE_STRIP); for (int z = 0; z < 3; z++) { glVertex3f(x, 0.0, z); glVertex3f((x+1.0), 0.0, z); glVertex3f(x, 0.0, (z+1.0)); TLFeBOOK Handling Primitives 63 glVertex3f((x+1.0), ... glBegin(GL_QUADS); for (int x = 0; x < 3; x++) { for (int z = 0; z < 3; z++) { glVertex3f(x, 0.0, z); glVertex3f((x+1.0), 0.0, z); glVertex3f((x+1.0), 0.0, (z+1.0)); glVertex3f(x, 0.0...
Ngày tải lên: 05/08/2014, 10:20
... about: ■ ■ ■ ■ ■ ■ ■ Colors in OpenGL Shading OpenGL lighting Light sources Materials Blending and transparency Fog Using Colors in OpenGL When you pass primitives to OpenGL, it assigns colors to ... GL_SRC_ALPHA_SATURATE * Only available as a source blend factor in OpenGL 1 .4 or later ** Only available as a destination blend factor in OpenGL 1 .4 or later *** Only available via...
Ngày tải lên: 05/08/2014, 10:20
beginning opengl game programming 2004 phần 5 ppt
... glEnd(); 0.0f); 0.0f); 1.0f); 1.0f); glVertex3f(-0.5f, 0.5f, 0.5f); glVertex3f(0.5f, 0.5f, 0.5f); glVertex3f(0.5f, 0.5f, -0.5f); glVertex3f(-0.5f, 0.5f, -0.5f); // // // // lower lower upper upper left ... GL_UNSIGNED_BYTE_2_3_3_REV GL_UNSIGNED_SHORT _5_ 6 _5 GL_UNSIGNED_SHORT _5_ 6 _5_ REV GL_UNSIGNED_SHORT_4_4_4_4 GL_UNSIGNED_SHORT_4_4_4_4_REV GL_UNSIGNED_SHORT _5_ 5 _5_ 1 GL_UNSIGNED_SHOR...
Ngày tải lên: 05/08/2014, 10:20
beginning opengl game programming 2004 phần 6 pps
... of OpenGL Extension Prefixes Prefix Meaning/Vendor ARB Extension approved by OpenGL s Architectural Review Board (first introduced with OpenGL 1.2) Extension agreed upon by more than one OpenGL ... find out how to use the automatic mipmap generation functionality of OpenGL! TLFeBOOK Texture Parameters 169 Texture Parameters OpenGL provides several parameters to control how textures...
Ngày tải lên: 05/08/2014, 10:20
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 ... Prepare() and Render() routines: void CGfxOpenGL::Prepare(float dt) { m_interpol += dt/TOTAL_TIME; if (m_interpol > 1.0) m_interpol = 1.0; } void CGfxOpenGL::Render() { glC...
Ngày tải lên: 05/08/2014, 10:20