void draw() {
graphics().beginClipping(x,y,w,h);
// draw things...
graphics().endClipping();
}
init:
graphics().begginClipping(x,y,w,h);
void draw() {
// draw things...
}
before exit:
graphics().endClipping();
draw()
. I have plans for a global transform, but not for a clipping rect yet. What is the use case for a global clipping rect?
pushTransform
.screenWidth()
/screenHeight()
for the window size. Then you know that your window is the same resolution as the physical screen. Also, your game will look better that way. :)
Graphics::setResolution
member function (this might mess with windowed mode).Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill