ELEC2645 (2018/19) / Mbed 2 deprecated el17dg

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Embed: (wiki syntax)

« Back to documentation index

Sprite Struct Reference

Sprite Struct Reference

A function to put a sprite and its data in one variable. More...

#include <sprite.h>

int width
 The width of the sprite.
int height
 The height of the sprite.
const int * data
 The array of 1s and 0s of the sprite.

Detailed Description

A function to put a sprite and its data in one variable.

A struct that alows to create an object containing a sprite, its width and height. It is used with another function located in main.h.

Definition at line 18 of file sprite.h.


Field Documentation

const int* data

The array of 1s and 0s of the sprite.

Definition at line 23 of file sprite.h.

int height

The height of the sprite.

Definition at line 22 of file sprite.h.

int width

The width of the sprite.

Definition at line 21 of file sprite.h.