65
|
1 #ifndef PWPDEMO_H
|
|
2 #define PWPDEMO_H
|
|
3
|
0
|
4 #include <stdio.h>
|
|
5 #include <stdlib.h>
|
|
6 #include <string.h>
|
|
7 #include <math.h>
|
|
8
|
|
9 #include "../pwplib/pwplib.h"
|
|
10
|
|
11 #define SIN(a) (sin((a)*3.1415926/128)*32767)
|
|
12 #define COS(a) ((3.1415926/2)+(cos((a)*3.1415926/128))*32767)
|
|
13
|
|
14 #define MAX(a,b) ((a)>(b)?(a):(b))
|
|
15 #define MIN(a,b) ((a)<(b)?(a):(b))
|
65
|
16
|
|
17
|
|
18 void initfontbuf();
|
|
19 void setfontbuf(char*txt,int blend);
|
|
20
|
|
21
|
|
22 typedef struct {
|
|
23 int width,height;
|
|
24 u8*pict;
|
|
25 u8*mask;
|
|
26 } sprite;
|
|
27
|
|
28 void zoomsprite_gen(int x0,int y0,sprite*sp,int zoom);
|
|
29
|
|
30 #endif /* PWPDEMO_H */
|