| 25 | } |
| 26 | |
| 27 | ITr2SpriteObject* Tr2Sprite2dRenderJob::PickPoint( float x, float y, Tr2Sprite2dScene* renderer ) |
| 28 | { |
| 29 | if( !m_display ) |
| 30 | { |
| 31 | return NULL; |
| 32 | } |
| 33 | |
| 34 | if( m_pickState == TR2_SPS_ON ) |
| 35 | { |
| 36 | if( renderer->IsInside( Vector2( x, y ), m_translation, m_displayWidth, m_displayHeight, 0.0f ) ) |
| 37 | { |
| 38 | if( !m_pickingMask || m_pickingMask->SampleMask( renderer->InverseTransformPoint( Vector2( x, y ) ), m_translation, m_displayWidth, m_displayHeight ) ) |
| 39 | { |
| 40 | return this; |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | return NULL; |
| 46 | } |
| 47 | |
| 48 | unsigned int Tr2Sprite2dRenderJob::GetVertexCount() |
| 49 | { |
nothing calls this directly
no test coverage detected