AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

RB.ClipGet

Method  -  Static

public static Rect2i ClipGet()

Parameters

No parameters.

Returns

Rect2i

Clipping region

Description

Get the current clipping region. If a custom clipping region was not set then this will return the default clip region, which is a rect that covers the entire display.

Example

const int LAYER_TERRAIN_MINIMAP = 0;

void Render()
{
    var oldClipRegion = RB.ClipGet();

    // Use clip region to render a minimap in the top left corner of the screen
    RB.ClipSet(new Vector2i(00128128);
    RB.DrawMapLayer(LAYER_TERRAIN_MINIMAP);

    RB.ClipSet(oldClipRegion);
}

See Also

RB.ClipSet
RB.ClipReset
RB.ClipDebugEnable
RB.ClipDebugDisable

See Docs

Features - Clip Region