Add sceondary offset method to Region class

This commit is contained in:
2014-04-12 14:36:02 -04:00
parent 5f6df4d76f
commit 5552dd9df8
2 changed files with 5 additions and 0 deletions

View File

@@ -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) {
setActiveRenderTarget(where);
glClearStencil(0);

View File

@@ -68,6 +68,7 @@ public:
void addRect(RECT rect);
void clear();
void offset(int x, int y);
void offset(location off);
Region& operator-=(Region& other);
};