X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fbakapi.h;h=f6acdddc202d6c58e072a7d7fc3eafe675e0d85b;hb=579be865a2f1d2a84d5295506f3e8ea9815d11af;hp=54af89847e49e76ee5747e01325ea553eb91b294;hpb=17ec26395419ff775f29661e50265dfbccfda3b0;p=proj16%2F16.git diff --git a/src/bakapi.h b/src/bakapi.h index 54af8984..f6acdddc 100755 --- a/src/bakapi.h +++ b/src/bakapi.h @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2020 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -19,13 +19,35 @@ * Fifth Floor, Boston, MA 02110-1301 USA. * */ - -#ifndef __BAKAPI_H_ -#define __BAKAPI_H_ +/* + * BAKAPEE! + */ +#ifndef __BAKAPI_H__ +#define __BAKAPI_H__ #include "src/lib/bakapee.h" +#include "src/lib/wcpu/16_wcpu.h" //project 16 testing define switch for veiwing the contents of the video memory --sparky4 #define BOINK // what does this mean? --J.C. +//#define BDOFSCONV (unsigned __near) defed in 16_tdef +#define BOFSS BDOFSCONV (gvar.video.BOFS)//gvar.video.ofs.bufferofs +#define DOFSS BDOFSCONV (gvar.video.DOFS)//gvar.video.ofs.displayofs + +#define SETUPPAGEBAKAPI \ + PALPROGRAMSNEWPAGE \ + gvar.video.page[1] = modexNextPage(&gvar.video.page[0]); + +#ifdef BAKAFIZZUNSIGNED +#define FIZZFADEFUN baka_FizzleFade (BOFSS, DOFSS, gvar.video.page[0].width, gvar.video.page[0].height, 70, true, &gvar); +#else +#define FIZZFADEFUN baka_FizzleFade (&gvar.video.page[1], &gvar.video.page[0], vga_state.vga_width, vga_state.vga_height, 70, true, &gvar); +#endif + +#define BAKAPIINITFIZZTEST \ + modexClearRegion(&(gvar.video.page[0]), 0, 0, gvar.video.page[0].width, gvar.video.page[0].height, 0); \ + modexClearRegion(&(gvar.video.page[1]), 0, 0, gvar.video.page[0].width, gvar.video.page[0].height, 14); \ + FIZZFADEFUN +//{ word w; for(w=0;w<(gvar.video.page[0].width*gvar.video.page[0].height);w++) { ding(&gvar.video.page[0], &bakapee, 2); } -#endif /*__BAKAPI_H_*/ +#endif /*__BAKAPI_H__*/