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

Method AddQuadsToQuadRenderer

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:1911–1933  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Adds sprites from sprite sets and spotlight sets to quad renderer. Arguments: quadRenderer - quad renderer --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1909// quadRenderer - quad renderer
1910// --------------------------------------------------------------------------------
1911void EveSpaceObject2::AddQuadsToQuadRenderer( const TriFrustum& frustum, Tr2QuadRenderer& quadRenderer )
1912{
1913 if( !m_isVisible || !m_display || m_impostorMode )
1914 {
1915 return;
1916 }
1917 size_t boneCount = 0;
1918 const Float4x3* bones = nullptr;
1919 Tr2GrannyAnimationUtils::GetBoneList( m_animationUpdater, bones, boneCount );
1920
1921 for( auto it = begin( m_attachments ); it != end( m_attachments ); ++it )
1922 {
1923 ( *it )->AddToQuadRenderer( quadRenderer, m_worldTransform, m_spaceObjectShipData.y, m_spaceObjectShipData.x, bones, boneCount );
1924 }
1925 auto displayChildren = DisplayChildren();
1926 for( auto it = m_effectChildren.begin(); it != m_effectChildren.end(); ++it )
1927 {
1928 if( displayChildren || ( *it )->IsAlwaysOn() )
1929 {
1930 ( *it )->AddQuadsToQuadRenderer( frustum, quadRenderer );
1931 }
1932 }
1933}
1934
1935
1936// --------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 7

GetBoneListFunction · 0.85
beginFunction · 0.50
endFunction · 0.50
AddToQuadRendererMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
IsAlwaysOnMethod · 0.45

Tested by

no test coverage detected