PureBasic - Sprite3D

Overview

The Sprite3D library is a small 3D engine used to display 2D sprites while using the new 3D hardware capability like real-time zooming, transform, blending (transparency) and more. To know more about sprites, just read the 'Sprite' documentation. A new graphics card is highly recommended to get the full power of these functions (with 3D acceleration). 3D Sprites are provided to allow uncommon effects to be achieved easily but remember than they could be more restrictive than regular sprite (regarding the size for example).


Windows: DirectX 9 is used for sprite handle which allow to use the hardware blitter chip if available. These library functions don't use the OGRE 3D-Engine, so their relating DLL's are not needed. There is two alternative subsystems available on Windows: 'OpenGL' and 'DirectX7', which could be useful for better compatibility with older Windows. Note: DirectX7 is not supported on the 64-bit edition of Windows.

MacOS X: OpenGL is used to manage the sprites. This makes it possible to use hardware acceleration if available.

Command Index

CreateSprite3D
DisplaySprite3D
FreeSprite3D
InitSprite3D
IsSprite3D
RotateSprite3D
Sprite3DBlendingMode
Sprite3DQuality
Start3D
Stop3D
TransformSprite3D
ZoomSprite3D

Example

Sprite3D.pb

Supported OS

Windows, Linux (OpenGl), MacOS X

Reference Manual - Index