Add ICursorControl::getReferenceRect
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6455 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@@ -197,6 +197,20 @@ namespace irr
|
||||
UseReferenceRect = false;
|
||||
}
|
||||
|
||||
virtual bool getReferenceRect(core::rect<s32>& rect) IRR_OVERRIDE
|
||||
{
|
||||
if ( UseReferenceRect )
|
||||
{
|
||||
rect = ReferenceRect;
|
||||
}
|
||||
else
|
||||
{
|
||||
rect.UpperLeftCorner = core::vector2di(0,0);
|
||||
rect.LowerRightCorner.X = (irr::s32)WindowSize.Width;
|
||||
rect.LowerRightCorner.Y = (irr::s32)WindowSize.Height;
|
||||
}
|
||||
return UseReferenceRect;
|
||||
}
|
||||
|
||||
//! Updates the internal cursor position
|
||||
void setInternalCursorPosition(const core::position2di &pos)
|
||||
|
Reference in New Issue
Block a user