PureBasic - Sprite
Overview
'Sprites' are well known by game players. These are small pictures, sometimes called 'brushes', which can be displayed at any position on a screen. The sprites can move over graphics using a transparent layer. Even better, PureBasic allows you to perform real time effects like real Shadow, AlphaBlending, RGBFilters, Alpha channel, ... all this in windowed or full screen mode !
Under Linux, SDL (Simple Directmedia Layer) is used to manage the sprites. This allows your programs to use hardware acceleration if available.
As the sprites under Linux are very linked to the screen, the screen related commands have been included into the sprite library (it may change later).
Command Index
CatchJPEGSprite
CatchSprite
ChangeAlphaIntensity
ChangeGamma
ClearScreen
ClipSprite
CloseScreen
CopySprite
CreateSprite
DisplayAlphaSprite
DisplayRGBFilter
DisplayShadowSprite
DisplaySolidSprite
DisplaySprite
DisplayTranslucideSprite
DisplayTransparentSprite
FlipBuffers
FreeSprite
GrabSprite
InitSprite
IsScreenActive
LoadJPEGSprite
LoadSprite
OpenScreen
OpenWindowedScreen
SaveSprite
ScreenID
ScreenOutput
SetFrameRate
SetRefreshRate
SpriteCollision
SpriteDepth
SpriteHeight
SpriteOutput
SpritePixelCollision
SpriteWidth
StartSpecialFX
StopSpecialFX
TransparentSpriteColor
UseBuffer
Example
Sprite.pb
Supported OS
Windows, AmigaOS, Linux