Supported Browsers Home   
SPR_destroyBitmap Previous   
SPR_drawExt Next   
External Functions Up   

SPR_draw

Draws the sprite object at the specified location.

Declaration

void MGLAPI SPR_draw(
    SPR_bitmap *bmp,
    int x,
    int y)

Prototype In

gm/sprite.h

Parameters

bmp

Sprite object to draw

x

X coordinate to draw the sprite at

y

Y coordinate to draw the sprite at

 

Description

This function draws the sprite object at the specified (x,y) location on the device context currently bound to the Sprite Manager (ie: the device context you used when you initialized it with SPR_mgrInit). The sprite is drawn using the attributes of the sprite when you added it (ie: opaque or source transparent).

See Also

SRP_drawSection, SPR_drawExt, SPR_mgrAddOpaqueBitmap, SPR_mgrAddTransparentBitmap,

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com