Again, the source for Quake1/2 and the BSP tools are available for download. The BSP tools read map files and convert them into sets of vertices and polygons, complete with texture mapping coordinates.
What more are you looking for?
What more are you looking for?