| 74 | } |
| 75 | |
| 76 | Tr2HostBitmapPtr EveCloudEditableVolume::Rasterize() |
| 77 | { |
| 78 | OnVolumeModified(); |
| 79 | if( m_thread ) |
| 80 | { |
| 81 | uint32_t result; |
| 82 | CcpJoinThread( m_thread, result ); |
| 83 | m_thread = 0; |
| 84 | if( m_currentParams.status == DataReady ) |
| 85 | { |
| 86 | m_bitmap->CreateVolume( m_currentParams.width, m_currentParams.height, m_currentParams.depth, 1, Tr2RenderContextEnum::PIXEL_FORMAT_B8G8R8A8_UNORM ); |
| 87 | memcpy( m_bitmap->GetRawData(), m_currentParams.pixels.get(), m_bitmap->GetRawDataSize() ); |
| 88 | m_texture->CreateFromHostBitmap( m_bitmap ); |
| 89 | if( m_volumeDirty ) |
| 90 | { |
| 91 | OnVolumeModified(); |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | return m_bitmap; |
| 96 | } |
| 97 | |
| 98 | void EveCloudEditableVolume::Update( Be::Time time ) |
| 99 | { |
nothing calls this directly
no test coverage detected