MCPcopy Create free account
hub / github.com/carbonengine/trinity / Update

Method Update

trinity/Eve/SpaceObject/Children/EveCloudEditableVolume.cpp:98–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void 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
119void EveCloudEditableVolume::OnListModified(
120 long event,

Callers 1

OnVolumeModifiedMethod · 0.45

Calls 4

getMethod · 0.80
CreateFromHostBitmapMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected