Stupid OPEN GL

OpenGL says retrieve origin coordinate of vertex using pushmatrix,popmatrix.

How stupid.

see the program

double x,y,z;

x=1.1; y=1.2; z=0.5;

glRotate(45,1,0,0); // x axis

glBegin(GL_POINTS)

glVertex3d(x,y,z);

glEnd

I can print x,y,z value (hardcoded) Why push and pop is required

Instead, It should give function to find new cordinate after rotation.

orignal value of vertex x,y,z (no function needed it is hardcoded

i.e. 1.1, 1.2 and 0.5

what is value after rotation.

say function

angle=45

axis = 1;

double nx,ny,nz;

glNewValue(angle,axis,x,y,z,&nx,&ny,&nz); // something like that

(THIS IS IMAGINARY FUNCTION)

so new value (WHICH IS NOT AVAILABLE,WHAT GLROTATE MODIFY X,Y,Z IS NOT KNOWN, SHOULD MAKE KNOWN) AND NOT WHAT IS KNOWN MAKE KNOWN

AGAIN WITH PUSH AND POP.

Regards