PureBasic - Sprite

Overview

'Sprites' are well known from 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, coloring, zoom, rotation all this in windowed or full screen mode !

After initializing the screen and sprite environment via InitSprite() you can start opening a full-size or windowed screen.

Windows: DirectX 9 is used for screen creation which your programs to use hardware acceleration if available. Two additional Subsystems are also available, depending of the needs: "OpenGL" and "DirectX11" which respectively leverage OpenGL and DirectX11 to handle screen creation.

Linux: OpenGL is used to manage the screen which allows to use hardware acceleration.

MacOS X: OpenGL is used to manage the screen which allows to use hardware acceleration.

Command Index

CatchSprite
ClipSprite
CopySprite
CreateSprite
DisplaySprite
DisplayTransparentSprite
FreeSprite
GrabSprite
InitSprite
IsSprite
LoadSprite
RotateSprite
SaveSprite
SpriteBlendingMode
SpriteCollision
SpriteDepth
SpriteHeight
SpriteID
SpriteOutput
SpritePixelCollision
SpriteQuality
SpriteWidth
TransformSprite
TransparentSpriteColor
ZoomSprite

Example

Sprite.pb
WindowedScreen.pb

Supported OS

All

Reference Manual - Index