Add sceondary offset method to Region class
This commit is contained in:
@@ -964,6 +964,10 @@ void Region::offset(int x, int y) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Region::offset(location off) {
|
||||||
|
offset(off.x, off.y);
|
||||||
|
}
|
||||||
|
|
||||||
void Region::setStencil(sf::RenderTarget& where) {
|
void Region::setStencil(sf::RenderTarget& where) {
|
||||||
setActiveRenderTarget(where);
|
setActiveRenderTarget(where);
|
||||||
glClearStencil(0);
|
glClearStencil(0);
|
||||||
|
@@ -68,6 +68,7 @@ public:
|
|||||||
void addRect(RECT rect);
|
void addRect(RECT rect);
|
||||||
void clear();
|
void clear();
|
||||||
void offset(int x, int y);
|
void offset(int x, int y);
|
||||||
|
void offset(location off);
|
||||||
Region& operator-=(Region& other);
|
Region& operator-=(Region& other);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user