added index_buffer.cpp, lots of duplication with vertex-buffer creation/locking etc