added gl draw type to the draw method