ID2D1DeviceContext3::DrawSpriteBatch(ID2D1SpriteBatch,ID2D1Bitmap,D2D1_BITMAP_INTERPOLATION_MODE,D2D1_SPRITE_OPTIONS) method (d2d1_3.h)

Renders all sprites in the given sprite batch to the device context using the specified drawing options.

Syntax

void DrawSpriteBatch(
  ID2D1SpriteBatch               *spriteBatch,
  ID2D1Bitmap                    *bitmap,
  D2D1_BITMAP_INTERPOLATION_MODE interpolationMode,
  D2D1_SPRITE_OPTIONS            spriteOptions
);

Parameters

spriteBatch

Type: ID2D1SpriteBatch*

The sprite batch to draw.

bitmap

Type: ID2D1Bitmap*

The bitmap from which the sprites are to be sourced. Each sprite’s source rectangle refers to a portion of this bitmap.

interpolationMode

Type: D2D1_BITMAP_INTERPOLATION_MODE

The interpolation mode to use when drawing this sprite batch. This determines how Direct2D interpolates pixels within the drawn sprites if scaling is performed.

spriteOptions

Type: D2D1_SPRITE_OPTIONS

The additional drawing options, if any, to be used for this sprite batch.

Return value

None

Requirements

   
Target Platform Windows
Header d2d1_3.h
Library D2d1.lib
DLL D2d1.dll

See also

ID2D1DeviceContext3