SetSpriteScaleMode

Category: Images and Rendering

Back to System Functions


Signature

SetSpriteScaleMode(spriteReference As Integer, mode As Integer)

Returns

Void

Description

Sets the texture filtering mode used when that sprite is drawn.

The mode argument should be a value from Scale Mode Constants.

Example

hero = LoadSprite("player.png", 32, 32) SetSpriteScaleMode(hero, SCALE_NEAREST) SetSpriteScaleMode(titleArt, SCALE_LINEAR)