look at the comments in extra.cpp there are links to good transform feedback stuff