# DrawSprite

## Description

Immediately draws the sprite to the backbuffer at its current position, size, and rotation. This is useful if you want to setup a scene for GetImage to capture. Remember to use ClearScreen to clear any of your own drawing before calling Sync or Render for the actual frame otherwise your drawing may appear twice in the final render.

## Definition

DrawSprite( iSpriteIndex )

void agk::DrawSprite( UINT iSpriteIndex )

## Parameters

- iSpriteIndex - The ID of the sprite to draw.