Display 3D point using opengl
问题 Simply, I am just trying to show a 3d point but nothing show on! How to show it? what is wrong in the code below, anybody can help? init: void init(void) { glClearColor(0.0, 0.0, 0.0, 0.0); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glOrtho(-200, 0.0, -50, 100, 70, 300); } display: void display(void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glColor3f(1.0, 1.0, 1.0); glPointSize(2); glBegin(GL_POINTS); glVertex3f(-120.0, 25.0, 0.0)