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

Method PickPoint

trinity/Sprite2d/Tr2Sprite2dTextObject.cpp:72–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72ITr2SpriteObject* 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
90unsigned int Tr2Sprite2dTextObject::GetVertexCount()
91{

Callers

nothing calls this directly

Calls 1

IsInsideMethod · 0.80

Tested by

no test coverage detected