for Mantis #2651: revert r10933, per forum discussion:
http://www.hard-light.net/forums/index.php?topic=88047.0

git-svn-id: svn://svn.icculus.org/fs2open@10937 387891d4-d844-0410-90c0-e4c51a9137d3
for Mantis #2064: remove ship template feature which never worked without crashing

git-svn-id: svn://svn.icculus.org/fs2open@10938 387891d4-d844-0410-90c0-e4c51a9137d3
some const-correctness in preparation for the Mantis #3071 patch

git-svn-id: svn://svn.icculus.org/fs2open@10939 387891d4-d844-0410-90c0-e4c51a9137d3
use static casts to make our intentions clear and prevent compiler warnings

git-svn-id: svn://svn.icculus.org/fs2open@10940 387891d4-d844-0410-90c0-e4c51a9137d3
a tweaked version of ngld's patch for additional main hall capabilities (see Mantis #3071)

git-svn-id: svn://svn.icculus.org/fs2open@10941 387891d4-d844-0410-90c0-e4c51a9137d3
Trunk Sync - r10941

git-svn-id: svn://svn.icculus.org/fs2open@10942 387891d4-d844-0410-90c0-e4c51a9137d3
Fix several gcc warnings in code/graphics/gropengldraw.cpp

variable ‘clipped’ set but not used [-Wunused-but-set-variable]
variable ‘swapped’ set but not used [-Wunused-but-set-variable]
the address of ‘Distortion_texture’ will always evaluate as ‘true’
[-Waddress]
declaration of ‘vertex’ shadows a global declaration [-Wshadow]

git-svn-id: svn://svn.icculus.org/fs2open@10943 387891d4-d844-0410-90c0-e4c51a9137d3
Fixed RTT bugs: 1) inverted geometry, 2) the output being mirrored both ways and a quarter of the output missing if post-processing is off.

git-svn-id: svn://svn.icculus.org/fs2open@10944 387891d4-d844-0410-90c0-e4c51a9137d3