Added opengl graphic device code.