# SetSpriteScissor

## Description

Clips the sprite to the specified world coordinates when drawn. Use the values 0,0,0,0 to turn off the sprite scissor

## Definition

SetSpriteScissor( iSpriteIndex, x, y, x2, y2 )

void agk::SetSpriteScissor( UINT iSpriteIndex, float x, float y, float x2, float y2 )

## Parameters

- iSpriteIndex - The ID of the sprite to modify.
- x - The x coordinate of the top left corner of the box to use as a clip boundary.
- y - The y coordinate of the top left corner of the box to use as a clip boundary.
- x2 - The x coordinate of the bottom right corner of the box to use as a clip boundary.
- y2 - The y coordinate of the bottom right corner of the box to use as a clip boundary.