| 1753 | } |
| 1754 | |
| 1755 | void Tr2Sprite2dScene::RunJob( TriRenderJob* job ) |
| 1756 | { |
| 1757 | CCP_STATS_ZONE( __FUNCTION__ ); |
| 1758 | |
| 1759 | CCP_ASSERT( job ); |
| 1760 | |
| 1761 | USE_MAIN_THREAD_RENDER_CONTEXT(); |
| 1762 | |
| 1763 | IssueDrawCall(); |
| 1764 | |
| 1765 | if( m_captureDisplayList ) |
| 1766 | { |
| 1767 | Tr2Sprite2dDisplayList::Entry entry; |
| 1768 | entry.job = job; |
| 1769 | entry.numVertices = 0; |
| 1770 | entry.startIndex = 0; |
| 1771 | entry.primitiveCount = 0; |
| 1772 | entry.texture0 = nullptr; |
| 1773 | entry.texture1 = nullptr; |
| 1774 | entry.texelSize0 = Vector4( 0, 0, 0, 0 ); |
| 1775 | entry.texelSize1 = Vector4( 0, 0, 0, 0 ); |
| 1776 | |
| 1777 | m_captureDisplayList->entries.push_back( entry ); |
| 1778 | } |
| 1779 | else |
| 1780 | { |
| 1781 | RunJobHelper( job ); |
| 1782 | |
| 1783 | // The render job may have set different textures - clear |
| 1784 | // our state for texture settings |
| 1785 | for( unsigned int i = 0; i < s_textureMax; ++i ) |
| 1786 | { |
| 1787 | m_texture[i] = nullptr; |
| 1788 | } |
| 1789 | |
| 1790 | renderContext.m_esm.ApplyIndexBuffer( m_indexBuffer.GetBuffer() ); |
| 1791 | } |
| 1792 | } |
| 1793 | |
| 1794 | void Tr2Sprite2dScene::SetTileMode( uint8_t tileMode ) |
| 1795 | { |
no test coverage detected