File: bg.h

package info (click to toggle)
ketm 0.0.6-17sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 9,356 kB
  • ctags: 875
  • sloc: ansic: 7,303; sh: 410; makefile: 185
file content (33 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (6)
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
#ifndef _BG_H_
#define _BG_H_

#include <SDL/SDL.h>
#include "support.h"
#include "sprite.h"

enum _bg_type {
	BG_BLACK=0,
	BG_CLOUDS,
	BG_STARS,
	BG_TILE,
	BG_LAST
};

typedef struct {
	double speed_base;
	double speed_rand;
} CLOUDS_DATA;


void bg_init(int bg_type);
void bg_work();
void bg_destroy();
void clouds_init();
void clouds_remove();
void clouds_mover(SPRITE *s);
void tile_init();
void tile_work();
void tile_display();
void tile_remove();

#endif