Quote:
Originally Posted by Kruuzr
Sorry I didn't get back to you earlier. (Last build night already started).
I don't have the code in front of me, but I believe the two parameters for GetImage() are Image* and double*. It may get the image into your Image* param but it also puts the timestamp into your double. The code looks something like this:
Image* image; // created using frcCreateImage() somewhere else
bool newImageAvailable()
{
double timestamp;
static double lastTimestamp = 0.0;
GetImage( image, ×tamp );
if ( timestamp > lastTimestamp )
{
lastTimestamp = timestamp;
return true;
}
return false;
}
I may have missed something but I think that's it.
Steve C.
|
Thank you for the code. I don't know why I didn't notice that GetImage() used the double pointer in that way. I guess that's what happens when you become sleep deprived at the end of a build season....