Hi All,
I'am a begginner in OpenGL, and I tried to use the glTranslate function but the result was wrong
in the following code I'am trying to move a single point 2-points right
void point()
{
glClear(GL_COLOR_BUFFER_BIT);
glLoadIdentity();
glTranslatef(2,0,-4.0);
glBegin(GL_POINTS);
glPointSize(5.0);
glVertex3f(0,0,0);
glEnd();
glFlush();
}
and the output is a black window
anyone can help ?
Thanks![]()



