-------------------------------------------------------------------------------- Description: Adds sprites from sprite sets and spotlight sets to quad renderer. Arguments: quadRenderer - quad renderer --------------------------------------------------------------------------------
| 1909 | // quadRenderer - quad renderer |
| 1910 | // -------------------------------------------------------------------------------- |
| 1911 | void 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 | // -------------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected