hi,
I want to get the float data from visual basic program in fixed period and creat objects by these data. How can i keep and display the different objects?
float y;
void CALLBACK readdata( float x)
{
y=x;
}
drawobjects()
{
……
gltranslatef(0,0,y);
glutSolidCube(1.0);
}
//end
as describe above,the argc y changes from time to time. So ,how to model ten Cubes across z axis?
thank you very much.