Most games / graphical things are programmed in C / C++ for speed. This makes me think you might want to try rolling your own perl wrapper using Inline::C (or Inline::CPP) to create an API for whatever you need.
Want to support the EFF and FSF by buying cool stuff? Click here.