File: bg.h

package info (click to toggle)
ketm 0.0.6-27
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 10,532 kB
  • sloc: ansic: 7,303; sh: 3,540; makefile: 135
file content (33 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (8)
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