//bind render target void CPURayTracer::BindRenderTarget( COLORREF* buf , int w , int h ) { //set the buffer first SetImageBuffer( buf ); //set image resolution SetImageResolution( w , h ); }
/// <summary> /// Start stream processing. /// </summary> /// <returns>Indicate success or failure.</returns> HRESULT NuiColorStream::StartStream() { SetImageType(NUI_IMAGE_TYPE_COLOR); // Set default image type to color image SetImageResolution(NUI_IMAGE_RESOLUTION_640x480); // Set default image resolution to 640x480 return OpenStream(); }