| 95 | driver->setTransform(irr::video::ETS_VIEW, oldViewMat); |
| 96 | } |
| 97 | CGUIImageButton::CGUIImageButton(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle) |
| 98 | : CGUIButton(environment, parent, id, rectangle) { |
| 99 | isDrawImage = true; |
| 100 | isFixedSize = false; |
| 101 | imageRotation = 0.0f; |
| 102 | imageScale = core::vector2df(1.0f, 1.0f); |
| 103 | imageSize = core::dimension2di(rectangle.getWidth(), rectangle.getHeight()); |
| 104 | } |
| 105 | CGUIImageButton* CGUIImageButton::addImageButton(IGUIEnvironment *env, const core::rect<s32>& rectangle, IGUIElement* parent, s32 id) { |
| 106 | CGUIImageButton* button = new CGUIImageButton(env, parent ? parent : 0, id, rectangle); |
| 107 | button->drop(); |
nothing calls this directly
no outgoing calls
no test coverage detected