encapsulated GLVertex stuff into a class