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

Method Rasterize

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

Source from the content-addressed store, hash-verified

74}
75
76Tr2HostBitmapPtr 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
98void EveCloudEditableVolume::Update( Be::Time time )
99{

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
CreateFromHostBitmapMethod · 0.80

Tested by

no test coverage detected