Skip to content

SPRITELOAD

Brain edited this page May 26, 2023 · 1 revision

SPRITELOAD

SPRITELOAD integer-variable, string-expression

Load a sprite and set the given integer variable to its handle value, where the filename to the sprite is in the string expression.

The following types of files are supported as sprites:

Extension File type
JPG JPEG
PNG Portable network graphics
TGA TARGA
BMP Windows DIB Bitmap
PSD Photoshop Document
GIF Graphics interchange format
PIC Pictor Paint (PC Paint)

When you are finished rendering the sprite you should free it with SPRITEFREE. Note that all sprites associated with a program are automatically freed when the program ends.

Each program may have up to 1024 sprites loaded at any one time, with the sprite handles that are allocated only having relavence to the program which loaded them.

Clone this wiki locally