annotate peluce/pwpdemo.h @ 89:ea44e1d9eb7c default tip

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 25 May 2014 05:03:14 +0300
parents c6ecac58120a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
65
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
1 #ifndef PWPDEMO_H
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
2 #define PWPDEMO_H
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
3
0
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 #include <stdio.h>
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 #include <stdlib.h>
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 #include <string.h>
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 #include <math.h>
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 #include "../pwplib/pwplib.h"
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 #define SIN(a) (sin((a)*3.1415926/128)*32767)
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 #define COS(a) ((3.1415926/2)+(cos((a)*3.1415926/128))*32767)
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 #define MAX(a,b) ((a)>(b)?(a):(b))
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 #define MIN(a,b) ((a)<(b)?(a):(b))
65
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
16
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
17
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
18 void initfontbuf();
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
19 void setfontbuf(char*txt,int blend);
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
20
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
21
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
22 typedef struct {
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
23 int width,height;
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
24 u8*pict;
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
25 u8*mask;
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
26 } sprite;
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
27
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
28 void zoomsprite_gen(int x0,int y0,sprite*sp,int zoom);
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
29
c6ecac58120a Clean up some warnings.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
30 #endif /* PWPDEMO_H */