Legacy:GetClippingRectangle

From Spherical
Revision as of 00:01, 4 June 2013 by Radnen (talk | contribs) (Created initial page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Causes the back buffer to be displayed to the screen for one time frame.

Usage

Rectangle GetClippingRectangle();


Notes

The returned clipping rectangle has the 4 properties, x, y, width, and height.

Examples

Get the clipping rectangle (whatever it was) and print it to screen.

var clip = GetClippingRectangle();
var f = GetSystemFont();

var x = clip.x;
var y = clip.y;
var w = clip.width;
var h = clip.height;

while (!IsKeyPressed(KEY_ESCAPE)) {
    f.drawText(0, 0, "x: " + x + " y: " + y + " w: " + w + " h: " + h);
    FlipScreen();
}


See also