For example We use glVertex* 10 times and after that we want to know what were the maximum and minimum values of coordinates used in x,y,z direction. Is it possible to get such information from OpenGL?
Is so is it possible to 'tell' opengl state machine: 'reset old max and min values and start checking it from now'?

errno

08-05-2003, 02:51 AM

AFAIK, no. maybe using vp ...
is it possible to have persistant registers ?

jebus

08-05-2003, 04:13 AM

instead of throwing OpenGL numbers, use variables. then, after the glVertex* calls, you have 10 variables...and from these you can find the min and max.

Thank You for your help,
I know i can remember values and later calculate it but im writting library based on OpenGL so i must allow other user which will use this library for freely using glVertex* (without limits and inconveniences like 'remember your value in the table') and thats why i wanted to take these informations after use glVertex* from OpenGL.