| 70 | } |
| 71 | |
| 72 | ITr2SpriteObject* Tr2Sprite2dTextObject::PickPoint( float x, float y, Tr2Sprite2dScene* renderer ) |
| 73 | { |
| 74 | if( !m_display ) |
| 75 | { |
| 76 | return nullptr; |
| 77 | } |
| 78 | |
| 79 | if( m_pickState == TR2_SPS_ON || m_hasAuxiliaryTooltip ) |
| 80 | { |
| 81 | if( renderer->IsInside( Vector2( x, y ), m_translation, m_displayWidth, m_displayHeight, m_pickRadius ) ) |
| 82 | { |
| 83 | return this; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | return nullptr; |
| 88 | } |
| 89 | |
| 90 | unsigned int Tr2Sprite2dTextObject::GetVertexCount() |
| 91 | { |