Draw primitives use opengles or graphics