© 2013 Thorlabs GmbH
4 Programming (SDK)
201
Return values
When used with
DR_CHECK_COMPATIBILITY
IS_DR_DEVICE_CAPS_INSUFFICIENT
The graphics hardware does not fully support the uc480
Direct3D functions.
IS_DR_CANNOT_CREATE_SURFACE
The image surface or overlay surface could not be
created.
IS_DR_CANNOT_CREATE_TEXTURE
The texture could not be created.
IS_DR_CANNOT_CREATE_VERTEX_BUFFER
The vertex buffer could not be created.
IS_DR_CANNOT_GET_OVERLAY_DC
Could not get the device context handle for the overlay.
IS_DR_CANNOT_LOCK_OVERLAY_SURFACE
The overlay surface could not be locked.
IS_DR_CANNOT_RELEASE_OVERLAY_DC
Could not release the device context handle for the
overlay.
IS_DR_CANNOT_UNLOCK_OVERLAY_SURFACE
The overlay surface could not be unlocked.
IS_DR_DEVICE_CAPS_INSUFFICIENT
Function is not supported by the graphics hardware.
IS_DR_DEVICE_OUT_OF_MEMORY
Not enough graphics memory available.
IS_DR_NOT_ALLOWED_WHILE_DC_IS_ACTIVE
A device context handle is still open in the application.
One of the submitted parameters is outside the valid
range or is not supported for this sensor or is not
available in this mode.
The camera model used here does not support this
function or setting.
Function executed successfully
A timeout occurred. An image capturing process could
not be terminated within the allowable period.
Related functions
is_SetDisplayMode()
is_SetColorMode()
is_SetImageMem()
is_RenderBitmap()
Example Supported function
UINT nType = IS_SET_DM_DIRECT3D;
if (is_DirectRenderer(m_pMainView->GetCameraHandle(), DR_GET_SUPPORTED,
(void*)&nType, sizeof(nType)) == IS_SUCCESS)
{
// Direct3D is supported
}
nType = IS_SET_DM_OPENGL;
if (is_DirectRenderer(m_pMainView->GetCameraHandle(), DR_GET_SUPPORTED,
(void*)&nType, sizeof(nType)) == IS_SUCCESS)
{
// OpenGL is supported
}
Example DC handle
//------------------------------------
// DC-Handle
//------------------------------------
// Get DC handle for Overlay
HDC hDC;
is_DirectRenderer (hCam, DR_GET_OVERLAY_DC, (void*)&hDC, sizeof (hDC));
// Release DC handle
is_DirectRenderer (hCam, DR_RELEASE_OVERLAY_DC, NULL, NULL);
322
319
337
297