added skeleton for retexture (test for output segments and neat feature for libretro3d/hijacks
external connection work, halfway there