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 !
As the sprites are very linked to the screen, the screen related commands have been included into the sprite library (it may change later).
Windows: DirectX 7 is used for sprite handling which allows your programs to use hardware acceleration if available.
Linux: SDL (Simple Directmedia Layer) is used to manage the sprites. This allows your programs to use hardware acceleration if available.
MacOS X: OpenGL is used to manage the sprites which allows to use hardware acceleration.
Command Index
AvailableScreenMemory
CatchSprite
ChangeAlphaIntensity
ChangeGamma
ClearScreen
ClipSprite
CloseScreen
CopySprite
CreateSprite
DisplayAlphaSprite
DisplayRGBFilter
DisplayShadowSprite
DisplaySolidSprite
DisplaySprite
DisplayTranslucideSprite
DisplayTransparentSprite
ExamineScreenModes
FlipBuffers
FreeSprite
GrabSprite
InitSprite
IsScreenActive
IsSprite
LoadSprite
NextScreenMode
OpenScreen
OpenWindowedScreen
SaveSprite
ScreenID
ScreenModeDepth
ScreenModeHeight
ScreenModeRefreshRate
ScreenModeWidth
ScreenOutput
SetFrameRate
SetRefreshRate
SpriteCollision
SpriteDepth
SpriteHeight
SpriteOutput
SpritePixelCollision
SpriteWidth
StartSpecialFX
StopSpecialFX
TransparentSpriteColor
UseBuffer
Example
Sprite.pb
Supported OS
All