| 100 | } |
| 101 | |
| 102 | IntPoint RTTLayer::getPosition(int _left, int _top) const |
| 103 | { |
| 104 | if (!mIsPick) |
| 105 | return Base::getPosition(_left, _top); |
| 106 | |
| 107 | #ifdef MYGUI_OGRE_PLATFORM |
| 108 | const MyGUI::IntSize& size = MyGUI::RenderManager::getInstance().getViewSize(); |
| 109 | bool result = |
| 110 | pickPositionInObject(_left, _top, size.width, size.height, mTextureSize.width, mTextureSize.height); |
| 111 | if (result) |
| 112 | { |
| 113 | mOldPoint.set(_left, _top); |
| 114 | } |
| 115 | #endif |
| 116 | |
| 117 | return mOldPoint; |
| 118 | } |
| 119 | |
| 120 | void RTTLayer::setTextureSize(const IntSize& _size) |
| 121 | { |
nothing calls this directly
no test coverage detected