Mercurial > hg > forks > pwpunix
view peluce/pwpdemo.h @ 71:a87eb778f225
Improvements to the MinGW crossbuild. Should now build with default tools
from Debian mingw packages, though you need Win32 version of libSDL with the
necessary headers and so on in addition. 64-bit builds not tested and
probably won't work. Tested on Debian 7.0, earlier won't work.
binutils-mingw-w64-i686 gcc-mingw-w64-i686 mingw-w64-i686-dev
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 14 Aug 2012 03:08:10 +0300 |
parents | c6ecac58120a |
children |
line wrap: on
line source
#ifndef PWPDEMO_H #define PWPDEMO_H #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "../pwplib/pwplib.h" #define SIN(a) (sin((a)*3.1415926/128)*32767) #define COS(a) ((3.1415926/2)+(cos((a)*3.1415926/128))*32767) #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) void initfontbuf(); void setfontbuf(char*txt,int blend); typedef struct { int width,height; u8*pict; u8*mask; } sprite; void zoomsprite_gen(int x0,int y0,sprite*sp,int zoom); #endif /* PWPDEMO_H */