SB-WinSrc/examples/src/shared/TriangleMesh.h
void Draw(void) {
                // Here's where the data is now
            glVertexPointer(3, GL_FLOAT,0, pVerts);
            glNormalPointer(GL_FLOAT, 0, pNorms);
            glTexCoordPointer(2, GL_FLOAT, 0, pTexCoords);

            // Draw them
            glDrawElements(GL_TRIANGLES, nNumIndexes, GL_UNSIGNED_SHORT, pIndexes);
            }
// Draw - make sure you call glEnableClientState for these arrays
make sure you call glEnableClientState for these arrays
make sure you call glEnableClientState for these arrays
void Draw(void) {
            glVertexPointer(3, GL_FLOAT,0, pVerts);
            glNormalPointer(GL_FLOAT, 0, pNorms);
            glTexCoordPointer(2, GL_FLOAT, 0, pTexCoords);
            glDrawElements(GL_TRIANGLES, nNumIndexes, GL_UNSIGNED_SHORT, pIndexes);
            }
void Draw ( void ) { glVertexPointer ( 3 , GL_FLOAT , 0 , pVerts ) ; glNormalPointer ( GL_FLOAT , 0 , pNorms ) ; glTexCoordPointer ( 2 , GL_FLOAT , 0 , pTexCoords ) ; glDrawElements ( GL_TRIANGLES , nNumIndexes , GL_UNSIGNED_SHORT , pIndexes ) ; }
Draw - make sure you call glEnableClientState for these arrays
Draw - make sure you call glEnableClientState for these arrays
// Here's where the data is now // Draw them