Author: DigiBen
Taking the above tutorial one step further, this tutorial deals with polygon collision. There's a big difference. This will tell you if a line segment intersects the actual polygon instead of the entire plane in which the polygon lies.
Functions Used: glViewport(), glMatrixMode(), glLoadIdentity(), gluPerspective(), glClear(), gluLookAt(), glBegin(), glEnd(), SwapBuffers(), sqrt(), arcos(), _isnan()
purchase full version
Access EXE