rigz.singlesurface: | Functions | Types | Modinfo | Source |
DrawSprite | Draw a tAnimImage to the screen. |
LoadSprite | Load an image and store it as a tAnimImage. |
TAnimImage | Type for creating single surface animations. |
Function DrawSprite(sprite:TAnimImage, x:Float, y:Float, frame:Int = 0) | |
Description | Draw a tAnimImage to the screen. |
Information | Very similar to BRL's DrawImage except of course it draws a tAnimImage. Parametres:
|
Function LoadSprite:TAnimImage(url:Object, width:Float = 0, height:Float = 0, frames:Int = 1, FindRadius:Int = False) | |
Description | Load an image and store it as a tAnimImage. |
Information | Very similar to BRL's loadanimimage except of course it returns a tAnimImage. Parametres:
|
Type TAnimImage | |
Description | Type for creating single surface animations. |
Information | This type replaces the usual drawimage with one that lets you draw animations using a single surface. Its questionable how much faster this makes things, but it might make improvements on slower cards, and it doesn't seem to slow down faster ones so. You can use the helper functions LoadSprite and DrawSprite to create and draw your images. |
Author | Tim Fisher (Indiepath) Modified by Peter Rigby |
---|---|
Purpose | Single surface image drawing when using animated images |
Version | v1 |