X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fpolyfill.h;fp=src%2Fpolyfill.h;h=d63704635c1f6f0becebb8ced322a72bf8001e4c;hb=5b98299a1aa716cc17cb5f70498c8e23cac945cb;hp=0000000000000000000000000000000000000000;hpb=ca3123df6cd875b1361533020c1f4eebfe9da295;p=gba_blender diff --git a/src/polyfill.h b/src/polyfill.h new file mode 100644 index 0000000..d637046 --- /dev/null +++ b/src/polyfill.h @@ -0,0 +1,30 @@ +/* +blender for the Gameboy Advance +Copyright (C) 2021 John Tsiombikas + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ +#ifndef POLYFILL_H_ +#define POLYFILL_H_ + +#include + +struct pvertex { + int32_t x, y; +}; + +void polyfill_framebuffer(unsigned char *fb, int width, int height); +void polyfill_flat(struct pvertex *v, int vnum, unsigned char col); + +#endif /* POLYFILL_H_ */