Made the internal index buffer a smart pointer so it gets released automatically.
Converted alpha ramps to use index buffer.
Implemented index buffer caching.