| 96 | } |
| 97 | |
| 98 | void EveCloudEditableVolume::Update( Be::Time time ) |
| 99 | { |
| 100 | if( m_currentParams.status == DataReady ) |
| 101 | { |
| 102 | uint32_t result; |
| 103 | CcpJoinThread( m_thread, result ); |
| 104 | m_thread = 0; |
| 105 | m_bitmap->CreateVolume( m_currentParams.width, m_currentParams.height, m_currentParams.depth, 1, Tr2RenderContextEnum::PIXEL_FORMAT_B8G8R8A8_UNORM ); |
| 106 | memcpy( m_bitmap->GetRawData(), m_currentParams.pixels.get(), m_bitmap->GetRawDataSize() ); |
| 107 | m_texture->CreateFromHostBitmap( m_bitmap ); |
| 108 | if( m_volumeDirty ) |
| 109 | { |
| 110 | OnVolumeModified(); |
| 111 | } |
| 112 | } |
| 113 | for( auto it = m_curveSets.begin(); it != m_curveSets.end(); ++it ) |
| 114 | { |
| 115 | ( *it )->Update( time, time ); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | void EveCloudEditableVolume::OnListModified( |
| 120 | long event, |
no test coverage detected