---
name: "COMPILED_SPRITE"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/COMPILED_SPRITE"
---

# COMPILED\_SPRITE(3alleg)

Stores the contents of a compiled sprite. Allegro game programming library.

## NAME

COMPILED\_SPRITE - Stores the contents of a compiled sprite. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**typedef struct COMPILED\_SPRITE**

## DESCRIPTION

```
   short planar;        - set if it's a planar (mode-X) sprite
   short color_depth;   - color depth of the image
   short w, h;          - size of the sprite
```

Compiled sprites are stored as actual machine code instructions that draw a specific image onto a bitmap, using mov instructions with immediate data values. Read chapter "Compiled sprites" for a description of the restrictions and how to obtain/use this structure.

## SEE ALSO

[**get\_compiled\_sprite**(3alleg)](/get_compiled_sprite/3alleg.md), [**BITMAP**(3alleg)](/BITMAP/3alleg.md), [**RLE\_SPRITE**(3alleg)](/RLE_SPRITE/3alleg.md)
