Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to convert OpenGL floating-point coordinates into plastic coordinates?
How to convert OpenGL floating-point coordinates into plastic coordinates?
You see, if you want to write vertices in integers, you have to change them to the following.

zint = int(z); //Very good

//Just look at the following example.

Floating? x=0.0f,y = 0.0f

int? xint = int(x);

int? yint = int(y);

glClearColor? (0.0f,? 0.0f,? 1.0f,? 0.0f);

glClear? (GL _ COLOR _ BUFFER _ BIT);

glPushMatrix? ();

glRotatef? (θ,? 1.0f,? 0.0f,? 0.0f);

Jill Bei Jing? (GL _ POINTS);

glColor3f? ( 1.0f,? 1.0f,? 1.0f); glVertex2i? (xint,? yint);

Glenn. ();

glPopMatrix? ();

Exchange buffer? (hDC);

θ? +=? 0.3f

Sleep? (0);