root / proj / libs / graph / include / basic_sprite.h @ 332
History | View | Annotate | Download (806 Bytes)
1 | 331 | up20180642 | #ifndef BASIC_SPRITE_H_INCLUDED
|
---|---|---|---|
2 | #define BASIC_SPRITE_H_INCLUDED
|
||
3 | |||
4 | /**
|
||
5 | * @defgroup basic_sprite_t basic_sprite_t
|
||
6 | * @ingroup graph
|
||
7 | * @brief Basic sprite module.
|
||
8 | *
|
||
9 | * A basic sprite allows to represent an image file.
|
||
10 | *
|
||
11 | * @{
|
||
12 | */
|
||
13 | struct basic_sprite;
|
||
14 | typedef struct basic_sprite basic_sprite_t; |
||
15 | |||
16 | basic_sprite_t* (basic_sprite_ctor)(const char *const *xpm, int16_t u0, int16_t v0); |
||
17 | void (basic_sprite_dtor)(basic_sprite_t *p);
|
||
18 | const uint8_t* (basic_sprite_get_map)(const basic_sprite_t *p); |
||
19 | uint16_t (basic_sprite_get_w) (const basic_sprite_t *p);
|
||
20 | uint16_t (basic_sprite_get_h) (const basic_sprite_t *p);
|
||
21 | int16_t (basic_sprite_get_u0) (const basic_sprite_t *p);
|
||
22 | int16_t (basic_sprite_get_v0) (const basic_sprite_t *p);
|
||
23 | |||
24 | /**
|
||
25 | * @}
|
||
26 | */
|
||
27 | |||
28 | #endif //BASIC_SPRITE_H_INCLUDED |