Implimented Hardware Acceleration.

This has been tested to work on all APIs from 10 through 17 (with the exception of 11 which I could not get to run in an emulator).