added const to SetPosition
changed index to GLint
added glEnable(GL_DEPTH_TEST) as default