Added quads.
Added check if the GLprogram is created for primitive.
Better primitive architecture