I've been reading the code of Horde3d for a few days. I've noticed that the glDrawRangeElements() in drawModels(),
glDrawRangeElements( GL_TRIANGLES, meshNode->getVertRStart(), meshNode->getVertREnd(), meshNode->getBatchCount(), curGeoRes->_16BitIndices ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, (char *)0 + meshNode->getBatchStart() * (curGeoRes->_16BitIndices ? sizeof( short ) : sizeof( int )) );
How dose "(char *)0 + meshNode->getBatchStart() *(curGeoRes->_16BitIndices ? sizeof( short ) : sizeof( int ))" mean ?
Is this code get a pointer to Triangle Indices?
Thx
|