aboutsummaryrefslogtreecommitdiff
path: root/src/sdl/assets.h
blob: 7f4af8c4aed24520d273a5011f28029c4936ed15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef ASSETS_H
#define ASSETS_H

#include <stddef.h> // size_t
#include <stdint.h> // uint8_t

typedef enum {
  ASSET_SPRITES_PNG,
  ASSET_ROBOTO_TTF,
  ASSET_SOUND_FIRST,
  ASSET_SOUND_COIN_0_WAV,
  ASSET_SOUND_COIN_1_WAV,
  ASSET_SOUND_COIN_2_WAV,
  ASSET_SOUND_HIT_0_WAV,
  ASSET_SOUND_HIT_1_WAV,
  ASSET_SOUND_HIT_2_WAV,
  ASSET_SOUND_JUMP_0_WAV,
  ASSET_SOUND_POWERUP_0_WAV,
  ASSET_SOUND_POWERUP_1_WAV,
  ASSET_SOUND_POWERUP_2_WAV,
  ASSET_SOUND_POWERUP_3_WAV,
  ASSET_SOUND_POWERUP_4_WAV,
  ASSET_SOUND_UNDO_0_WAV,
  ASSET_SOUND_UNDO_1_WAV,
  ASSET_SOUND_LAST,
  ASSET_LAST,
} asset_id_t;

typedef struct {
  const uint8_t * const buf;
  size_t len;
} asset_t;

const asset_t *asset_get(const asset_id_t);

#endif /* ASSETS_H */