Hi,
I am using the following code:
zcInitialize(&this->ZSpaceContext); // no error returned by this call
int numDisplays;
zcGetNumDisplays(this->ZSpaceContext, &numDisplays);
for (int i = 0; i < numDisplays; i++)
{
ZCHandle displayHandle;
zcGetDisplayByIndex(this->ZSpaceContext, i, &displayHandle);
ZCDisplayType displayType;
zcGetDisplayType(displayHandle, &displayType);
cout << "Type: ";
switch (displayType)
{
case ZC_DISPLAY_TYPE_UNKNOWN:
cout << "Unknown" << endl;
break;
case ZC_DISPLAY_TYPE_GENERIC:
cout << "Generic" << endl;
break;
case ZC_DISPLAY_TYPE_ZSPACE:
cout << "ZSpace" << endl;
break;
default:
cout << "???" << endl;
break;
}
}
This code prints two generic displays. I have indeed two displays but a generic monitor and a zSpace.
For some reason, the zSpace is detected as a generic display.
If I call zcGetNumDisplaysByType(this->ZSpaceContext, ZC_DISPLAY_TYPE_ZSPACE, &numDisplays);
it returns 0
.
I have a zSpace 200, and everything is working great in the zSpace control panel.
Any idea?