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

Method UpdateRtMesh

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:1742–1760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1740}
1741
1742void EveSpaceObject2::UpdateRtMesh( const EveUpdateContext& updateContext )
1743{
1744 USE_MAIN_THREAD_RENDER_CONTEXT();
1745 if( !renderContext.GetCaps().SupportsRaytracing() )
1746 {
1747 return;
1748 }
1749 auto areas = m_mesh->GetAreas( TRIBATCHTYPE_OPAQUE );
1750 if( !areas->empty() )
1751 {
1752 auto rtMesh = m_mesh->GetOrCreateRtMesh();
1753 rtMesh->UpdateRtMesh( m_mesh->GetGeometryResource(), m_mesh->GetMeshIndex(), m_meshScreenSize );
1754
1755 for( auto it = begin( *areas ); it != end( *areas ); ++it )
1756 {
1757 ( *it )->GetOrCreateRtMeshArea();
1758 }
1759 }
1760}
1761
1762void EveSpaceObject2::UpdateRtSkeleton()
1763{

Callers

nothing calls this directly

Calls 9

GetAreasMethod · 0.80
emptyMethod · 0.80
GetOrCreateRtMeshMethod · 0.80
GetGeometryResourceMethod · 0.80
GetMeshIndexMethod · 0.80
GetOrCreateRtMeshAreaMethod · 0.80
beginFunction · 0.50
endFunction · 0.50
SupportsRaytracingMethod · 0.45

Tested by

no test coverage detected